mirror of
https://github.com/luxfi/chains.git
synced 2026-09-24 00:26:00 +00:00
cevm: doc ExecuteBlock as itself
The comment read "ExecuteBlock is the legacy name for ExecuteBlock ... Deprecated: use ExecuteBlock" — a rename rewrote both the old and new name to the same string, leaving the only ExecuteBlock marked deprecated in favour of itself. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -118,10 +118,9 @@ func copyU64(ptr *C.uint64_t, want uint32) []uint64 {
|
||||
return dst
|
||||
}
|
||||
|
||||
// ExecuteBlock is the legacy name for ExecuteBlock. New code uses
|
||||
// ExecuteBlock; this is retained for test-file compatibility.
|
||||
//
|
||||
// Deprecated: use ExecuteBlock.
|
||||
// ExecuteBlock runs txs against backend and returns the block result. A nil ctx
|
||||
// leaves the C side on its own block defaults; nil state means no prestate is
|
||||
// seeded. numThreads is passed through to the C executor.
|
||||
func ExecuteBlock(backend Backend, numThreads uint32, txs []Transaction, ctx *BlockContext, state []StateAccount) (*BlockResult, error) {
|
||||
if len(txs) == 0 {
|
||||
return &BlockResult{ABIVersion: ABIVersion}, nil
|
||||
|
||||
Reference in New Issue
Block a user