mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-25 01:09:28 +00:00
fix: broken tests
This commit is contained in:
parent
58fad516dc
commit
9664b1655f
1 changed files with 8 additions and 0 deletions
|
|
@ -709,6 +709,14 @@ func (b testBackend) HistoryPruningCutoff() uint64 {
|
|||
return bn
|
||||
}
|
||||
|
||||
// GetTransactionHashBySenderAndNonce implements the Backend interface for testing.
|
||||
func (b *testBackend) GetTransactionBySenderAndNonce(ctx context.Context, sender common.Address, nonce uint64) (*common.Hash, error) {
|
||||
// Todo(shadow): to implement for txn pending in mempool after implementing other pending
|
||||
// mempool functionality like GetPoolTransactions
|
||||
hash := rawdb.ReadTxSenderNonceEntry(b.db, sender, nonce)
|
||||
return hash, nil
|
||||
}
|
||||
|
||||
func TestEstimateGas(t *testing.T) {
|
||||
t.Parallel()
|
||||
// Initialize test accounts
|
||||
|
|
|
|||
Loading…
Reference in a new issue