mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
internal/server/ship_processor.go: adding some debug logging.
This commit is contained in:
parent
70eda8e397
commit
dfa370a462
1 changed files with 11 additions and 0 deletions
|
|
@ -146,6 +146,12 @@ func (processor *ShipProcessor) processTransactionTrace(log *log.Entry, blockNum
|
|||
func (processor *ShipProcessor) proccessActionTrace(logger *log.Entry, trace *ship.ActionTraceV1) *message.ActionTrace {
|
||||
// Check if actions updates an abi.
|
||||
if trace.Act.Account == processor.syscontract && trace.Act.Name == chain.N("setabi") {
|
||||
|
||||
logger.WithFields(log.Fields{
|
||||
"contract": trace.Act.Account,
|
||||
"action": trace.Act.Name,
|
||||
}).Debug("Update contract ABI")
|
||||
|
||||
err := processor.updateAbiFromAction(&trace.Act)
|
||||
if err != nil {
|
||||
logger.WithError(err).Warn("Failed to update abi")
|
||||
|
|
@ -194,6 +200,11 @@ func (processor *ShipProcessor) proccessActionTrace(logger *log.Entry, trace *sh
|
|||
})
|
||||
}
|
||||
|
||||
logger.WithFields(log.Fields{
|
||||
"contract": trace.Act.Account,
|
||||
"action": trace.Act.Name,
|
||||
}).Debug("Reading contract ABI")
|
||||
|
||||
ABI, err := processor.abi.GetAbi(trace.Act.Account)
|
||||
if err == nil {
|
||||
if act.Data, err = trace.Act.Decode(ABI); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue