You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This random generator use a different random seed from the simState.Rand, while GenSignedMockTx is widely used in x/{module}/operations.go to generate sdk.Tx.
This means even with the same random seed, the simulation could generate txs with different length of memo.
Therefore, ConsumeTxSizeGasMiddleware could consume different gas while executing the tx, which leads to non-deterministic appHash.
Summary of Bug
The simulation is not deterministic because we use a standalone random generator in
GenSignedMockTx
:This random generator use a different random seed from the
simState.Rand
, whileGenSignedMockTx
is widely used inx/{module}/operations.go
to generatesdk.Tx
.This means even with the same random seed, the simulation could generate txs with different length of memo.
Therefore,
ConsumeTxSizeGasMiddleware
could consume different gas while executing the tx, which leads to non-deterministic appHash.Version
master@450cd7fc8708ccb0fa21f05e251d9804a2063b79
release/v0.45.x
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: