mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-06 19:55:10 +00:00
util: implement io.Serializable for Uint256
This commit is contained in:
parent
b16e56a47b
commit
2be18f91df
9 changed files with 48 additions and 54 deletions
|
@ -135,10 +135,7 @@ func (b *Block) DecodeBinary(br *io.BinReader) {
|
|||
// Serializable interface.
|
||||
func (b *Block) EncodeBinary(bw *io.BinWriter) {
|
||||
b.BlockBase.EncodeBinary(bw)
|
||||
bw.WriteVarUint(uint64(len(b.Transactions)))
|
||||
for _, tx := range b.Transactions {
|
||||
tx.EncodeBinary(bw)
|
||||
}
|
||||
bw.WriteArray(b.Transactions)
|
||||
}
|
||||
|
||||
// Compare implements the queue Item interface.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue