-
Notifications
You must be signed in to change notification settings - Fork 363
Implement debug_trace* related APIs #4690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| DepositGasFunc protocol.DepositGas | ||
| } | ||
|
|
||
| TracerContext struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
| return hc | ||
| } | ||
|
|
||
| func WithTracerCtx(ctx context.Context, tctx TracerContext) context.Context { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
| return context.WithValue(ctx, tracerContextKey{}, tctx) | ||
| } | ||
|
|
||
| func GetTracerCtx(ctx context.Context) (TracerContext, bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment
blockchain/blockchain.go
Outdated
| } | ||
| minterAddress := producerPrivateKey.PublicKey().Address() | ||
| log.L().Info("Minting a new block.", zap.Uint64("height", newblockHeight), zap.String("minter", minterAddress.String())) | ||
| log.L().Debug("Minting a new block.", zap.Uint64("height", newblockHeight), zap.String("minter", minterAddress.String())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave it as INFO
|



Description
Implement the four debug APIs:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: