result: use witnesses field in result.Header JSON

Follow new Neo 3.0 standard for these outputs.
This commit is contained in:
Roman Khimov 2020-05-25 16:41:39 +03:00
parent 7633439845
commit 5432530df4
3 changed files with 16 additions and 16 deletions

View file

@ -1041,7 +1041,7 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
Timestamp: hdr.Timestamp,
Index: hdr.Index,
NextConsensus: address.Uint160ToString(hdr.NextConsensus),
Script: hdr.Script,
Witnesses: []transaction.Witness{hdr.Script},
Confirmations: e.chain.BlockHeight() - hdr.Index + 1,
NextBlockHash: &nextHash,
}