mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-02 21:18:40 +00:00
ethapi: wrap transaction submission errors with txValidationError
This commit is contained in:
parent
01fe1d716c
commit
e220c51447
1 changed files with 1 additions and 1 deletions
|
|
@ -1553,7 +1553,7 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c
|
||||||
return common.Hash{}, errors.New("only replay-protected (EIP-155) transactions allowed over RPC")
|
return common.Hash{}, errors.New("only replay-protected (EIP-155) transactions allowed over RPC")
|
||||||
}
|
}
|
||||||
if err := b.SendTx(ctx, tx); err != nil {
|
if err := b.SendTx(ctx, tx); err != nil {
|
||||||
return common.Hash{}, err
|
return common.Hash{}, txValidationError(err)
|
||||||
}
|
}
|
||||||
// Print a log with full tx details for manual investigations and interventions
|
// Print a log with full tx details for manual investigations and interventions
|
||||||
head := b.CurrentBlock()
|
head := b.CurrentBlock()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue