From 22e73c44cc7c643a603e2bbde89e1981e7622082 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Tue, 26 Feb 2019 11:14:22 +0100 Subject: [PATCH] Fix ethereum_testnet_ropsten integration test --- tests/rpc/rpc.go | 2 ++ tests/rpc/testdata/ethereum_testnet_ropsten.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/rpc/rpc.go b/tests/rpc/rpc.go index 6bb07233..e8722062 100644 --- a/tests/rpc/rpc.go +++ b/tests/rpc/rpc.go @@ -37,6 +37,7 @@ type TestData struct { BlockHeight uint32 `json:"blockHeight"` BlockHash string `json:"blockHash"` BlockTime int64 `json:"blockTime"` + BlockSize int `json:"blockSize"` BlockTxs []string `json:"blockTxs"` TxDetails map[string]*bchain.Tx `json:"txDetails"` } @@ -314,6 +315,7 @@ func testGetBlockHeader(t *testing.T, h *TestHandler) { Hash: h.TestData.BlockHash, Height: h.TestData.BlockHeight, Time: h.TestData.BlockTime, + Size: h.TestData.BlockSize, } got, err := h.Chain.GetBlockHeader(h.TestData.BlockHash) diff --git a/tests/rpc/testdata/ethereum_testnet_ropsten.json b/tests/rpc/testdata/ethereum_testnet_ropsten.json index a550e3f9..8584c644 100644 --- a/tests/rpc/testdata/ethereum_testnet_ropsten.json +++ b/tests/rpc/testdata/ethereum_testnet_ropsten.json @@ -2,6 +2,7 @@ "blockHeight": 2870000, "blockHash": "0xeccd6b0031015a19cb7d4e10f28590ba65a6a54ad1baa322b50fe5ad16903895", "blockTime": 1521515026, + "blockSize": 2729, "blockTxs": [ "0x17ee235fc0359155b25419e0e4c65d9c500df6e71e8288d6ef020d04cc2f2cb3", "0xe6b168d6bb3d8ed78e03dbf828b6bfd1fb613f6e129cba624964984553724c5d", @@ -18,7 +19,6 @@ ], "txDetails": { "0x7f0d140329941f120b5b3fc751e30adeb87b2aebbfce5adcd0216604a34b6cc0": { - "hex": "7b226e6f6e6365223a223078333632306136222c226761735072696365223a223078313261303566323030222c22676173223a22307835323038222c22746f223a22307831623137626331326166623635643563346238316139666632613037366234326131396661616136222c2276616c7565223a223078646530623662336137363430303030222c22696e707574223a223078222c2268617368223a22307837663064313430333239393431663132306235623366633735316533306164656238376232616562626663653561646364303231363630346133346236636330222c22626c6f636b4e756d626572223a223078326263616630222c2266726f6d223a22307838316237653038663635626466353634383630366338393939386139636338313634333937363437222c227472616e73616374696f6e496e646578223a22307862222c2276223a2230783162222c2272223a22307862666662323864633865373939383833366639356664616139396433626435666635346365663562313839636462383537333537666161326431616231393136222c2273223a22307833616462316365313264396664306538616662373064386639346534636538356137666639346465333966623636333139363638363435663464643138646432227d", "txid": "0x7f0d140329941f120b5b3fc751e30adeb87b2aebbfce5adcd0216604a34b6cc0", "blocktime": 1521515026, "time": 1521515026,