@@ -1558,16 +1558,18 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c
1558
1558
if err := b .SendTx (ctx , tx ); err != nil {
1559
1559
return common.Hash {}, err
1560
1560
}
1561
+ // Print a log with full tx details for manual investigations and interventions
1562
+ signer := types .MakeSigner (b .ChainConfig (), b .CurrentBlock ().Number ())
1563
+ from , err := types .Sender (signer , tx )
1564
+ if err != nil {
1565
+ return common.Hash {}, err
1566
+ }
1567
+
1561
1568
if tx .To () == nil {
1562
- signer := types .MakeSigner (b .ChainConfig (), b .CurrentBlock ().Number ())
1563
- from , err := types .Sender (signer , tx )
1564
- if err != nil {
1565
- return common.Hash {}, err
1566
- }
1567
1569
addr := crypto .CreateAddress (from , tx .Nonce ())
1568
- log .Info ("Submitted contract creation" , "fullhash " , tx .Hash ().Hex (), "contract" , addr .Hex ())
1570
+ log .Info ("Submitted contract creation" , "hash " , tx .Hash ().Hex (), "from" , from , "nonce" , tx . Nonce (), " contract" , addr .Hex (), "value" , tx . Value ())
1569
1571
} else {
1570
- log .Info ("Submitted transaction" , "fullhash " , tx .Hash ().Hex (), "recipient" , tx .To ())
1572
+ log .Info ("Submitted transaction" , "hash " , tx .Hash ().Hex (), "from" , from , "nonce" , tx . Nonce (), " recipient" , tx .To (), "value" , tx . Value ())
1571
1573
}
1572
1574
return tx .Hash (), nil
1573
1575
}
0 commit comments