Skip to content

Commit 4524ef3

Browse files
chore: bump go-header, go-fraud and celestia-openrpc (#1166)
Depends on celestiaorg/celestia-openrpc#43 --------- Co-authored-by: Manav Aggarwal <manavaggarwal1234@gmail.com>
1 parent a55e295 commit 4524ef3

15 files changed

Lines changed: 117 additions & 189 deletions

da/celestia/celestia.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (c *DataAvailabilityLayerClient) SubmitBlocks(ctx context.Context, blocks [
9797
blobs[blockIndex] = blockBlob
9898
}
9999

100-
dataLayerHeight, err := c.rpc.Blob.Submit(ctx, blobs)
100+
dataLayerHeight, err := c.rpc.Blob.Submit(ctx, blobs, openrpc.DefaultSubmitOptions())
101101
if err != nil {
102102
return da.ResultSubmitBlocks{
103103
BaseResult: da.BaseResult{

da/celestia/mock/server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ func (s *Server) rpc(w http.ResponseWriter, r *http.Request) {
196196
s.writeError(w, err)
197197
return
198198
}
199-
if len(params) != 1 {
200-
s.writeError(w, errors.New("expected 1 param: data (base64 string)"))
199+
if len(params) != 2 {
200+
s.writeError(w, errors.New("expected 2 params: data (base64 string) and options (map[string]interface{})"))
201201
return
202202
}
203-
203+
// ignores the second parameter - options
204204
blocks := make([]*types.Block, len(params[0].([]interface{})))
205205
for i, data := range params[0].([]interface{}) {
206206
blockBase64 := data.(map[string]interface{})["data"].(string)

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module github.com/rollkit/rollkit
33
go 1.20
44

55
require (
6-
github.com/celestiaorg/go-header v0.2.13
7-
github.com/celestiaorg/nmt v0.18.1
8-
github.com/celestiaorg/rsmt2d v0.10.0
6+
github.com/celestiaorg/go-header v0.3.1
7+
github.com/celestiaorg/nmt v0.19.0
8+
github.com/celestiaorg/rsmt2d v0.11.0
99
github.com/celestiaorg/utils v0.1.0
1010
github.com/cometbft/cometbft v0.37.2
1111
github.com/creachadair/taskgroup v0.6.0
@@ -23,7 +23,7 @@ require (
2323
github.com/libp2p/go-libp2p-pubsub v0.9.3
2424
github.com/multiformats/go-multiaddr v0.11.0
2525
github.com/prometheus/client_golang v1.16.0
26-
github.com/rollkit/celestia-openrpc v0.1.2
26+
github.com/rollkit/celestia-openrpc v0.2.0
2727
github.com/rs/cors v1.9.0
2828
github.com/spf13/cobra v1.7.0
2929
github.com/spf13/viper v1.16.0
@@ -36,12 +36,12 @@ require (
3636
)
3737

3838
require (
39-
cosmossdk.io/math v1.0.1 // indirect
39+
cosmossdk.io/math v1.1.2 // indirect
4040
github.com/benbjohnson/clock v1.3.5 // indirect
4141
github.com/beorn7/perks v1.0.1 // indirect
4242
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
4343
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 // indirect
44-
github.com/celestiaorg/go-fraud v0.1.2 // indirect
44+
github.com/celestiaorg/go-fraud v0.2.0 // indirect
4545
github.com/celestiaorg/go-libp2p-messenger v0.2.0 // indirect
4646
github.com/celestiaorg/merkletree v0.0.0-20210714075610-a84dc3ddbbe4 // indirect
4747
github.com/cespare/xxhash v1.1.0 // indirect
@@ -101,7 +101,7 @@ require (
101101
github.com/jmhodges/levigo v1.0.0 // indirect
102102
github.com/klauspost/compress v1.16.7 // indirect
103103
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
104-
github.com/klauspost/reedsolomon v1.11.1 // indirect
104+
github.com/klauspost/reedsolomon v1.11.8 // indirect
105105
github.com/koron/go-ssdp v0.0.4 // indirect
106106
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
107107
github.com/libp2p/go-cidranger v1.1.0 // indirect

go.sum

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX
6161
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
6262
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
6363
contrib.go.opencensus.io/exporter/stackdriver v0.13.4/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc=
64-
cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg=
65-
cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k=
64+
cosmossdk.io/math v1.1.2 h1:ORZetZCTyWkI5GlZ6CZS28fMHi83ZYf+A2vVnHNzZBM=
65+
cosmossdk.io/math v1.1.2/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0=
6666
dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU=
6767
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
6868
dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU=
@@ -190,18 +190,18 @@ github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7
190190
github.com/butuzov/ireturn v0.1.1/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc=
191191
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
192192
github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg=
193-
github.com/celestiaorg/go-fraud v0.1.2 h1:Bf7yIN3lZ4IR/Vlu5OtmcVCVNESBKEJ/xwu28rRKGA8=
194-
github.com/celestiaorg/go-fraud v0.1.2/go.mod h1:kHZXQY+6gd1kYkoWRFFKgWyrLPWRgDN3vd1Ll9gE/oo=
195-
github.com/celestiaorg/go-header v0.2.13 h1:sUJLXYs8ViPpxLXyIIaW3h4tPFgtVYMhzsLC4GHfS8I=
196-
github.com/celestiaorg/go-header v0.2.13/go.mod h1:NhiWq97NtAYyRBu8quzYOUghQULjgOzO2Ql0iVEFOf0=
193+
github.com/celestiaorg/go-fraud v0.2.0 h1:aaq2JiW0gTnhEdac3l51UCqSyJ4+VjFGTTpN83V4q7I=
194+
github.com/celestiaorg/go-fraud v0.2.0/go.mod h1:lNY1i4K6kUeeE60Z2VK8WXd+qXb8KRzfBhvwPkK6aUc=
195+
github.com/celestiaorg/go-header v0.3.1 h1:rJuFPVMoI20Du4KHWLz0IMllEIp0XgIWi9lHQLPWmq8=
196+
github.com/celestiaorg/go-header v0.3.1/go.mod h1:H8xhnDLDLbkpwmWPhCaZyTnIV3dlVxBHPnxNXS2Qu6c=
197197
github.com/celestiaorg/go-libp2p-messenger v0.2.0 h1:/0MuPDcFamQMbw9xTZ73yImqgTO3jHV7wKHvWD/Irao=
198198
github.com/celestiaorg/go-libp2p-messenger v0.2.0/go.mod h1:s9PIhMi7ApOauIsfBcQwbr7m+HBzmVfDIS+QLdgzDSo=
199199
github.com/celestiaorg/merkletree v0.0.0-20210714075610-a84dc3ddbbe4 h1:CJdIpo8n5MFP2MwK0gSRcOVlDlFdQJO1p+FqdxYzmvc=
200200
github.com/celestiaorg/merkletree v0.0.0-20210714075610-a84dc3ddbbe4/go.mod h1:fzuHnhzj1pUygGz+1ZkB3uQbEUL4htqCGJ4Qs2LwMZA=
201-
github.com/celestiaorg/nmt v0.18.1 h1:zU3apzW4y0fs0ilQA74XnEYW8FvRv0CUK2LXK66L3rA=
202-
github.com/celestiaorg/nmt v0.18.1/go.mod h1:0l8q6UYRju1xNrxtvV6NwPdW3lfsN6KuZ0htRnModdc=
203-
github.com/celestiaorg/rsmt2d v0.10.0 h1:8dprr6CW5mCk5YPnbiLdirojw9YsJOE+XB+GORb8sT0=
204-
github.com/celestiaorg/rsmt2d v0.10.0/go.mod h1:BiCZkCJfhDHUEOJKXUeu+CudjluecKvRTqHcuxKvodc=
201+
github.com/celestiaorg/nmt v0.19.0 h1:9VXFeI/gt+q8h5HeCE0RjXJhOxsFzxJUjHrkvF9CMYE=
202+
github.com/celestiaorg/nmt v0.19.0/go.mod h1:Oz15Ub6YPez9uJV0heoU4WpFctxazuIhKyUtaYNio7E=
203+
github.com/celestiaorg/rsmt2d v0.11.0 h1:lcto/637WyTEZR3dLRoNvyuExfnUbxvdvKi3qz/2V4k=
204+
github.com/celestiaorg/rsmt2d v0.11.0/go.mod h1:6Y580I3gVr0+OVFfW6m2JTwnCCmvW3WfbwSLfuT+HCA=
205205
github.com/celestiaorg/utils v0.1.0 h1:WsP3O8jF7jKRgLNFmlDCwdThwOFMFxg0MnqhkLFVxPo=
206206
github.com/celestiaorg/utils v0.1.0/go.mod h1:vQTh7MHnvpIeCQZ2/Ph+w7K1R2UerDheZbgJEJD2hSU=
207207
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
@@ -790,8 +790,8 @@ github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuOb
790790
github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg=
791791
github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
792792
github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs=
793-
github.com/klauspost/reedsolomon v1.11.1 h1:0gCWQXOB8pVe1Y5SGozDA5t2qoVxX3prsV+qHgI/Fik=
794-
github.com/klauspost/reedsolomon v1.11.1/go.mod h1:FXLZzlJIdfqEnQLdUKWNRuMZg747hZ4oYp2Ml60Lb/k=
793+
github.com/klauspost/reedsolomon v1.11.8 h1:s8RpUW5TK4hjr+djiOpbZJB4ksx+TdYbRH7vHQpwPOY=
794+
github.com/klauspost/reedsolomon v1.11.8/go.mod h1:4bXRN+cVzMdml6ti7qLouuYi32KHJ5MGv0Qd8a47h6A=
795795
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
796796
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
797797
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
@@ -1349,8 +1349,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
13491349
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
13501350
github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o=
13511351
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
1352-
github.com/rollkit/celestia-openrpc v0.1.2 h1:EglDzgTLVF8JT+szvvRJ3cyZIliRQWf0+OJZjdksr1s=
1353-
github.com/rollkit/celestia-openrpc v0.1.2/go.mod h1:rAnRxt1XXLPBCIcZ5M1RWbXLlg8IrYFOXFmyNgn2148=
1352+
github.com/rollkit/celestia-openrpc v0.2.0 h1:miSxBgiKtDBZk0dUgreAMubIPXU/Qtf9Q36+E7yZdeE=
1353+
github.com/rollkit/celestia-openrpc v0.2.0/go.mod h1:0fNIcIMbG0ZceCoh4tINNhuzhmebUMDV0cJqZboe/wg=
13541354
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
13551355
github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
13561356
github.com/rs/cors v1.9.0 h1:l9HGsTsHJcvW14Nk7J9KFz8bzeAWXn3CG6bgt7LsrAE=

node/block_exchange.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (bExService *BlockExchangeService) initBlockStoreAndStartSyncer(ctx context
8989
// Note: Only returns an error in case block store can't be initialized. Logs error if there's one while broadcasting.
9090
func (bExService *BlockExchangeService) writeToBlockStoreAndBroadcast(ctx context.Context, block *types.Block) error {
9191
// For genesis block initialize the store and start the syncer
92-
if block.Height() == bExService.genesis.InitialHeight {
92+
if int64(block.Height()) == bExService.genesis.InitialHeight {
9393
if err := bExService.blockStore.Init(ctx, block); err != nil {
9494
return fmt.Errorf("failed to initialize block store")
9595
}

node/full_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,11 @@ func (c *FullClient) Status(ctx context.Context) (*ctypes.ResultStatus, error) {
738738
SyncInfo: ctypes.SyncInfo{
739739
LatestBlockHash: cmbytes.HexBytes(latest.SignedHeader.DataHash),
740740
LatestAppHash: cmbytes.HexBytes(latest.SignedHeader.AppHash),
741-
LatestBlockHeight: latest.Height(),
741+
LatestBlockHeight: int64(latest.Height()),
742742
LatestBlockTime: latest.Time(),
743743
EarliestBlockHash: cmbytes.HexBytes(initial.SignedHeader.DataHash),
744744
EarliestAppHash: cmbytes.HexBytes(initial.SignedHeader.AppHash),
745-
EarliestBlockHeight: initial.Height(),
745+
EarliestBlockHeight: int64(initial.Height()),
746746
EarliestBlockTime: initial.Time(),
747747
CatchingUp: true, // the client is always syncing in the background to the latest height
748748
},

node/full_client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func TestGetCommit(t *testing.T) {
402402
}
403403
t.Run("Fetch all commits", func(t *testing.T) {
404404
for _, b := range blocks {
405-
h := b.Height()
405+
h := int64(b.Height())
406406
commit, err := rpc.Commit(context.Background(), &h)
407407
require.NoError(err)
408408
require.NotNil(commit)
@@ -414,7 +414,7 @@ func TestGetCommit(t *testing.T) {
414414
commit, err := rpc.Commit(context.Background(), nil)
415415
require.NoError(err)
416416
require.NotNil(commit)
417-
assert.Equal(blocks[3].Height(), commit.Height)
417+
assert.Equal(int64(blocks[3].Height()), commit.Height)
418418
})
419419
}
420420

@@ -496,7 +496,7 @@ func TestGetBlockByHash(t *testing.T) {
496496
abciBlock, err := abciconv.ToABCIBlock(block)
497497
require.NoError(err)
498498

499-
height := block.Height()
499+
height := int64(block.Height())
500500
retrievedBlock, err := rpc.Block(context.Background(), &height)
501501
require.NoError(err)
502502
require.NotNil(retrievedBlock)

node/header_exchange.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (hExService *HeaderExchangeService) initHeaderStoreAndStartSyncer(ctx conte
8989
// Note: Only returns an error in case header store can't be initialized. Logs error if there's one while broadcasting.
9090
func (hExService *HeaderExchangeService) writeToHeaderStoreAndBroadcast(ctx context.Context, signedHeader *types.SignedHeader) error {
9191
// For genesis header initialize the store and start the syncer
92-
if signedHeader.Height() == hExService.genesis.InitialHeight {
92+
if int64(signedHeader.Height()) == hExService.genesis.InitialHeight {
9393
if err := hExService.headerStore.Init(ctx, signedHeader); err != nil {
9494
return fmt.Errorf("failed to initialize header store")
9595
}
@@ -220,6 +220,7 @@ func newP2PExchange(
220220
goheaderp2p.WithNetworkID[goheaderp2p.ClientParameters](network),
221221
goheaderp2p.WithChainID(chainID),
222222
)
223+
223224
return goheaderp2p.NewExchange[*types.SignedHeader](host, peers, conngater, opts...)
224225
}
225226

state/executor.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (e *BlockExecutor) updateState(state types.State, block *types.Block, abciR
203203
}
204204
}
205205
// Change results from this height but only applies to the next next height.
206-
lastHeightValSetChanged = block.Height() + 1 + 1
206+
lastHeightValSetChanged = int64(block.Height()) + 1 + 1
207207
}
208208

209209
if len(nValSet.Validators) > 0 {
@@ -218,7 +218,7 @@ func (e *BlockExecutor) updateState(state types.State, block *types.Block, abciR
218218
Version: state.Version,
219219
ChainID: state.ChainID,
220220
InitialHeight: state.InitialHeight,
221-
LastBlockHeight: block.Height(),
221+
LastBlockHeight: int64(block.Height()),
222222
LastBlockTime: block.Time(),
223223
LastBlockID: cmtypes.BlockID{
224224
Hash: cmbytes.HexBytes(block.Hash()),
@@ -270,10 +270,10 @@ func (e *BlockExecutor) validate(state types.State, block *types.Block) error {
270270
block.SignedHeader.Version.Block != state.Version.Consensus.Block {
271271
return errors.New("block version mismatch")
272272
}
273-
if state.LastBlockHeight <= 0 && block.Height() != state.InitialHeight {
273+
if state.LastBlockHeight <= 0 && int64(block.Height()) != state.InitialHeight {
274274
return errors.New("initial block height mismatch")
275275
}
276-
if state.LastBlockHeight > 0 && block.Height() != state.LastBlockHeight+1 {
276+
if state.LastBlockHeight > 0 && int64(block.Height()) != state.LastBlockHeight+1 {
277277
return errors.New("block height mismatch")
278278
}
279279
if !bytes.Equal(block.SignedHeader.AppHash[:], state.AppHash[:]) {
@@ -341,7 +341,7 @@ func (e *BlockExecutor) execute(ctx context.Context, state types.State, block *t
341341
}
342342

343343
}
344-
endBlockRequest := abci.RequestEndBlock{Height: block.Height()}
344+
endBlockRequest := abci.RequestEndBlock{Height: int64(block.Height())}
345345
abciResponses.EndBlock, err = e.proxyApp.EndBlockSync(endBlockRequest)
346346
if err != nil {
347347
return nil, err
@@ -375,13 +375,13 @@ func (e *BlockExecutor) publishEvents(resp *cmstate.ABCIResponses, block *types.
375375
for _, ev := range abciBlock.Evidence.Evidence {
376376
err = multierr.Append(err, e.eventBus.PublishEventNewEvidence(cmtypes.EventDataNewEvidence{
377377
Evidence: ev,
378-
Height: block.Height(),
378+
Height: int64(block.Height()),
379379
}))
380380
}
381381
for i, dtx := range resp.DeliverTxs {
382382
err = multierr.Append(err, e.eventBus.PublishEventTx(cmtypes.EventDataTx{
383383
TxResult: abci.TxResult{
384-
Height: block.Height(),
384+
Height: int64(block.Height()),
385385
Index: uint32(i),
386386
Tx: abciBlock.Data.Txs[i],
387387
Result: *dtx,

state/executor_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ func doTestCreateBlock(t *testing.T) {
6868
block := executor.CreateBlock(1, &types.Commit{}, []byte{}, state)
6969
require.NotNil(block)
7070
assert.Empty(block.Data.Txs)
71-
assert.Equal(int64(1), block.Height())
71+
assert.Equal(uint64(1), block.Height())
7272

7373
// one small Tx
7474
err = mpool.CheckTx([]byte{1, 2, 3, 4}, func(r *abci.Response) {}, mempool.TxInfo{})
7575
require.NoError(err)
7676
block = executor.CreateBlock(2, &types.Commit{}, []byte{}, state)
7777
require.NotNil(block)
78-
assert.Equal(int64(2), block.Height())
78+
assert.Equal(uint64(2), block.Height())
7979
assert.Len(block.Data.Txs, 1)
8080

8181
// now there are 3 Txs, and only two can fit into single block
@@ -158,7 +158,7 @@ func doTestApplyBlock(t *testing.T) {
158158
require.NoError(err)
159159
block := executor.CreateBlock(1, &types.Commit{Signatures: []types.Signature{types.Signature([]byte{1, 1, 1})}}, []byte{}, state)
160160
require.NotNil(block)
161-
assert.Equal(int64(1), block.Height())
161+
assert.Equal(uint64(1), block.Height())
162162
assert.Len(block.Data.Txs, 1)
163163

164164
// Update the signature on the block to current from last
@@ -184,7 +184,7 @@ func doTestApplyBlock(t *testing.T) {
184184
require.NoError(mpool.CheckTx(make([]byte, 90), func(r *abci.Response) {}, mempool.TxInfo{}))
185185
block = executor.CreateBlock(2, &types.Commit{Signatures: []types.Signature{types.Signature([]byte{1, 1, 1})}}, []byte{}, newState)
186186
require.NotNil(block)
187-
assert.Equal(int64(2), block.Height())
187+
assert.Equal(uint64(2), block.Height())
188188
assert.Len(block.Data.Txs, 3)
189189

190190
headerBytes, _ = block.SignedHeader.Header.MarshalBinary()

0 commit comments

Comments
 (0)