-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:bitcoin-sv/arc into update-sdk
- Loading branch information
Showing
50 changed files
with
529 additions
and
838 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package bcnet | ||
|
||
import ( | ||
"io" | ||
|
||
"github.com/libsv/go-p2p/chaincfg/chainhash" | ||
"github.com/libsv/go-p2p/wire" | ||
) | ||
|
||
// BlockMessage only stores the transaction IDs of the block, not the full transactions | ||
type BlockMessage struct { | ||
Hash *chainhash.Hash | ||
Header *wire.BlockHeader | ||
Height uint64 | ||
TransactionHashes []*chainhash.Hash | ||
Size uint64 | ||
} | ||
|
||
func (bm *BlockMessage) Bsvdecode(io.Reader, uint32, wire.MessageEncoding) error { | ||
return nil | ||
} | ||
func (bm *BlockMessage) BsvEncode(io.Writer, uint32, wire.MessageEncoding) error { | ||
return nil | ||
} | ||
func (bm *BlockMessage) Command() string { | ||
return "block" | ||
} | ||
func (bm *BlockMessage) MaxPayloadLength(uint32) uint64 { | ||
return wire.MaxExtMsgPayload | ||
} |
Oops, something went wrong.