-
Notifications
You must be signed in to change notification settings - Fork 127
Introduce TxBlock and RootBlock
#173
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
| status choices.Status, | ||
| vm VM, | ||
| ) (*StatelessRootBlock, error) { | ||
| ctx, span := vm.Tracer().Start(ctx, "chain.ParseStatefulBlock") |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
chain/root_block.go
Outdated
| ctx context.Context, | ||
| estimatedChanges int, | ||
| ) (merkledb.TrieView, error) { | ||
| ctx, span := b.vm.Tracer().Start(ctx, "StatelessRootBlock.childState") |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
|
|
||
| // implements "snowman.Block.choices.Decidable" | ||
| func (b *StatelessTxBlock) Reject(ctx context.Context) error { | ||
| ctx, span := b.vm.Tracer().Start(ctx, "StatelessTxBlock.Reject") |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
| } | ||
|
|
||
| func (b *StatelessTxBlock) Accept(ctx context.Context) error { | ||
| ctx, span := b.vm.Tracer().Start(ctx, "StatelessTxBlock.Accept") |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
|
|
||
| // implements "snowman.Block.choices.Decidable" | ||
| func (b *StatelessTxBlock) Reject(ctx context.Context) error { | ||
| ctx, span := b.vm.Tracer().Start(ctx, "StatelessTxBlock.Reject") |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
|
This PR has become stale because it has been open for 30 days with no activity. Adding the |




Closes: #52
Replaces: #136
TODO
VersionDBLastso we don't blockRootBlock.VerifyUnixMilli) + limit 1 block per X ms (avoid surge of seconds)