forked from TrueCloudLab/neoneo-go
io: implement ReadBytes()
This commit is contained in:
parent
838050f8b5
commit
fccb008594
22 changed files with 72 additions and 38 deletions
|
@ -31,7 +31,7 @@ func (p *prepareRequest) EncodeBinary(w *io.BinWriter) {
|
|||
func (p *prepareRequest) DecodeBinary(r *io.BinReader) {
|
||||
r.ReadLE(&p.timestamp)
|
||||
r.ReadLE(&p.nonce)
|
||||
r.ReadBE(p.nextConsensus[:])
|
||||
r.ReadBytes(p.nextConsensus[:])
|
||||
r.ReadArray(&p.transactionHashes)
|
||||
p.minerTx.DecodeBinary(r)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue