fix: remove setting of finalizeBlockState in FinalizeBlock + fix initialHeight + add ProcessProposal in tests/sims (#16794)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
co-authored by
Aleksandr Bezobchuk
parent
101992aa7a
commit
0fd6227a06
@@ -60,7 +60,7 @@ func TestInitApp(t *testing.T) {
|
||||
require.Equal(t, []byte("bar"), qres.Value)
|
||||
}
|
||||
|
||||
func TestDeliverTx(t *testing.T) {
|
||||
func TestFinalizeBlock(t *testing.T) {
|
||||
app := SetupApp(t)
|
||||
|
||||
key := "my-special-key"
|
||||
@@ -72,6 +72,13 @@ func TestDeliverTx(t *testing.T) {
|
||||
tx := NewTx(key, value, randomAccounts[0].Address)
|
||||
txBytes := tx.GetSignBytes()
|
||||
|
||||
_, err := app.ProcessProposal(&abci.RequestProcessProposal{
|
||||
Hash: []byte("apphash"),
|
||||
Height: 1,
|
||||
Txs: [][]byte{txBytes},
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
res, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{
|
||||
Hash: []byte("apphash"),
|
||||
Height: 1,
|
||||
|
||||
Reference in New Issue
Block a user