@@ -1367,30 +1367,25 @@ func (w *worker) fillTransactions(interrupt *atomic.Int32, env *environment, val
1367
1367
1368
1368
if validatorCoinbase != nil && w .config .BuilderTxSigningKey != nil {
1369
1369
builderCoinbaseBalanceAfter := env .state .GetBalance (w .coinbase )
1370
- log .Info ("Before creating validator profit" , "validatorCoinbase" , validatorCoinbase .String (), "builderCoinbase" , w .coinbase .String (), "builderCoinbaseBalanceBefore" , builderCoinbaseBalanceBefore .String (), "builderCoinbaseBalanceAfter" , builderCoinbaseBalanceAfter .String ())
1370
+ log .Trace ("Before creating validator profit" , "validatorCoinbase" , validatorCoinbase .String (), "builderCoinbase" , w .coinbase .String (), "builderCoinbaseBalanceBefore" , builderCoinbaseBalanceBefore .String (), "builderCoinbaseBalanceAfter" , builderCoinbaseBalanceAfter .String ())
1371
1371
1372
1372
profit := new (big.Int ).Sub (builderCoinbaseBalanceAfter , builderCoinbaseBalanceBefore )
1373
1373
env .gasPool .AddGas (paymentTxGas )
1374
1374
if profit .Sign () == 1 {
1375
1375
tx , err := w .createProposerPayoutTx (env , validatorCoinbase , profit )
1376
1376
if err != nil {
1377
- log .Error ("Proposer payout create tx failed" , "err" , err )
1378
1377
return fmt .Errorf ("proposer payout create tx failed - %v" , err ), nil
1379
1378
}
1380
1379
if tx != nil {
1381
- log .Info ("Proposer payout create tx succeeded, proceeding to commit tx" )
1382
1380
_ , err = w .commitTransaction (env , tx )
1383
1381
if err != nil {
1384
- log .Error ("Proposer payout commit tx failed" , "hash" , tx .Hash ().String (), "err" , err )
1385
1382
return fmt .Errorf ("proposer payout commit tx failed - %v" , err ), nil
1386
1383
}
1387
- log .Info ("Proposer payout commit tx succeeded" , "hash" , tx .Hash ().String ())
1388
1384
env .tcount ++
1389
1385
} else {
1390
1386
return errors .New ("proposer payout create tx failed due to tx is nil" ), nil
1391
1387
}
1392
1388
} else {
1393
- log .Warn ("Proposer payout create tx failed due to not enough balance" , "profit" , profit .String ())
1394
1389
return errors .New ("proposer payout create tx failed due to not enough balance" ), nil
1395
1390
}
1396
1391
}
@@ -1437,35 +1432,30 @@ func (w *worker) fillTransactionsAlgoWorker(interrupt *int32, env *environment,
1437
1432
start := time .Now ()
1438
1433
builder := newGreedyBuilder (w .chain , w .chainConfig , w .blockList , env , interrupt )
1439
1434
newEnv , blockBundles := builder .buildBlock (bundlesToConsider , pending )
1440
- log .Debug ("Build block" , "time" , time .Since (start ), "gas used " , newEnv .header .GasUsed )
1435
+ log .Debug ("Build block" , "time" , time .Since (start ), "gasUsed " , newEnv .header .GasUsed )
1441
1436
* env = * newEnv
1442
1437
1443
1438
if validatorCoinbase != nil && w .config .BuilderTxSigningKey != nil {
1444
1439
builderCoinbaseBalanceAfter := env .state .GetBalance (w .coinbase )
1445
- log .Info ("Before creating validator profit" , "validatorCoinbase" , validatorCoinbase .String (), "builderCoinbase" , w .coinbase .String (), "builderCoinbaseBalanceBefore" , builderCoinbaseBalanceBefore .String (), "builderCoinbaseBalanceAfter" , builderCoinbaseBalanceAfter .String ())
1440
+ log .Trace ("Before creating validator profit" , "validatorCoinbase" , validatorCoinbase .String (), "builderCoinbase" , w .coinbase .String (), "builderCoinbaseBalanceBefore" , builderCoinbaseBalanceBefore .String (), "builderCoinbaseBalanceAfter" , builderCoinbaseBalanceAfter .String ())
1446
1441
1447
1442
profit := new (big.Int ).Sub (builderCoinbaseBalanceAfter , builderCoinbaseBalanceBefore )
1448
1443
env .gasPool .AddGas (params .TxGas )
1449
1444
if profit .Sign () == 1 {
1450
1445
tx , err := w .createProposerPayoutTx (env , validatorCoinbase , profit )
1451
1446
if err != nil {
1452
- log .Error ("Proposer payout create tx failed" , "err" , err )
1453
1447
return fmt .Errorf ("proposer payout create tx failed - %v" , err ), nil
1454
1448
}
1455
1449
if tx != nil {
1456
- log .Info ("Proposer payout create tx succeeded, proceeding to commit tx" )
1457
1450
_ , err = w .commitTransaction (env , tx )
1458
1451
if err != nil {
1459
- log .Error ("Proposer payout commit tx failed" , "hash" , tx .Hash ().String (), "err" , err )
1460
1452
return fmt .Errorf ("proposer payout commit tx failed - %v" , err ), nil
1461
1453
}
1462
- log .Info ("Proposer payout commit tx succeeded" , "hash" , tx .Hash ().String ())
1463
1454
env .tcount ++
1464
1455
} else {
1465
1456
return errors .New ("proposer payout create tx failed due to tx is nil" ), nil
1466
1457
}
1467
1458
} else {
1468
- log .Warn ("Proposer payout create tx failed due to not enough balance" , "profit" , profit .String ())
1469
1459
return errors .New ("proposer payout create tx failed due to not enough balance" ), nil
1470
1460
}
1471
1461
@@ -1494,7 +1484,7 @@ func (w *worker) generateWork(params *generateParams) (*types.Block, *big.Int, e
1494
1484
if errors .Is (err , errBlockInterruptedByTimeout ) {
1495
1485
log .Warn ("Block building is interrupted" , "allowance" , common .PrettyDuration (w .newpayloadTimeout ))
1496
1486
}
1497
- log .Info ("Filled block with transactions" , "time" , time .Since (start ), "gas used" , work .header .GasUsed , "txs" , work .txs )
1487
+ log .Debug ("Filled block with transactions" , "time" , time .Since (start ), "gas used" , work .header .GasUsed , "txs" , len ( work .txs ) )
1498
1488
}
1499
1489
block , err := w .engine .FinalizeAndAssemble (w .chain , work .header , work .state , work .txs , work .unclelist (), work .receipts , params .withdrawals )
1500
1490
if err != nil {
@@ -1921,7 +1911,7 @@ func (w *worker) createProposerPayoutTx(env *environment, recipient *common.Addr
1921
1911
}
1922
1912
gasPrice := new (big.Int ).Set (env .header .BaseFee )
1923
1913
chainId := w .chainConfig .ChainID
1924
- log .Debug ("createProposerPayoutTx" , "sender" , sender , "chainId" , chainId .String (), "nonce" , nonce , "amount" , amount .String (), "baseFee" , env .header .BaseFee .String (), "fee" , fee )
1914
+ log .Trace ("createProposerPayoutTx" , "sender" , sender , "chainId" , chainId .String (), "nonce" , nonce , "amount" , amount .String (), "baseFee" , env .header .BaseFee .String (), "fee" , fee )
1925
1915
tx := types .NewTransaction (nonce , * recipient , amount , paymentTxGas , gasPrice , nil )
1926
1916
return types .SignTx (tx , types .LatestSignerForChainID (chainId ), w .config .BuilderTxSigningKey )
1927
1917
}
0 commit comments