mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
debug validator traces
This commit is contained in:
parent
93a9497d75
commit
5485833255
1 changed files with 13 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
@ -293,6 +294,18 @@ func (v *BlockValidator) validateCircuitRowConsumption(block *types.Block) (*typ
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bTraces, err := json.Marshal(traces)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
log.Debug("Validator get block traces",
|
||||||
|
"id", v.circuitCapacityChecker.ID,
|
||||||
|
"block number", block.NumberU64(),
|
||||||
|
"block hash", block.Hash().Hex(),
|
||||||
|
"traces", string(bTraces),
|
||||||
|
)
|
||||||
|
|
||||||
v.cMu.Lock()
|
v.cMu.Lock()
|
||||||
defer v.cMu.Unlock()
|
defer v.cMu.Unlock()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue