Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the code work with latest btcsuite repo changes
- Loading branch information
Gregor Pogacnik
committed
May 26, 2015
1 parent
8c27eb8
commit 35d03a3
Showing
5 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/btcsuite/btcwire" | ||
"github.com/btcsuite/btcd/wire" | ||
) | ||
|
||
type Client struct { | ||
btcnet btcwire.BitcoinNet // Bitcoin Network | ||
pver uint32 // Protocl Version | ||
userAgent string // User Agent | ||
btcnet wire.BitcoinNet // Bitcoin Network | ||
pver uint32 // Protocl Version | ||
userAgent string // User Agent | ||
} | ||
|
||
func NewClient(userAgent string) *Client { | ||
return &Client{ | ||
btcnet: btcwire.MainNet, | ||
pver: btcwire.ProtocolVersion, | ||
btcnet: wire.MainNet, | ||
pver: wire.ProtocolVersion, | ||
userAgent: userAgent, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters