diff options
Diffstat (limited to 'dex/handler_test.go')
-rw-r--r-- | dex/handler_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dex/handler_test.go b/dex/handler_test.go index dc1ea1d73..c9e99abc9 100644 --- a/dex/handler_test.go +++ b/dex/handler_test.go @@ -198,9 +198,10 @@ func testGetBlockHeaders(t *testing.T, protocol int) { // Run each of the tests and verify the results against the chain for i, tt := range tests { // Collect the headers to expect in the response - headers := []*types.Header{} + headers := []*types.HeaderWithGovState{} for _, hash := range tt.expect { - headers = append(headers, pm.blockchain.GetBlockByHash(hash).Header()) + headers = append(headers, &types.HeaderWithGovState{ + Header: pm.blockchain.GetBlockByHash(hash).Header()}) } // Send the hash request and verify the response p2p.Send(peer.app, 0x03, tt.query) |