mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 01:41:48 +00:00
core: make test chain format compatible with mainnet
Write uint32 length before every block.
This commit is contained in:
parent
51c4868641
commit
44792ed5f7
3 changed files with 2 additions and 0 deletions
|
@ -275,6 +275,7 @@ func _(t *testing.T) {
|
|||
buf := io.NewBufBinWriter()
|
||||
b.EncodeBinary(buf.BinWriter)
|
||||
bytes := buf.Bytes()
|
||||
writer.WriteU32LE(uint32(len(bytes)))
|
||||
writer.WriteBytes(bytes)
|
||||
require.NoError(t, writer.Err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue