backport block size fixes (#5492)

* mempool: length prefix txs when getting them from mempool (#5483)

* correctly calculate evidence data size (#5482)

* block: use commit sig size instead of vote size (#5490)

* tx: reduce function to one parameter (#5493)
This commit is contained in:
Marko
2020-10-13 18:07:54 +02:00
committed by GitHub
parent 7d5d417dc9
commit 09982ae407
17 changed files with 320 additions and 454 deletions

View File

@@ -290,7 +290,7 @@ func TestAppCalls(t *testing.T) {
h = apph - 1
commit2, err := c.Commit(context.Background(), &h)
require.NoError(err)
assert.Equal(block.Block.LastCommit, commit2.Commit)
assert.Equal(block.Block.LastCommitHash, commit2.Commit.Hash())
// and we got a proof that works!
_pres, err := c.ABCIQueryWithOptions(context.Background(), "/key", k, client.ABCIQueryOptions{Prove: true})