MCPcopy
hub / github.com/bnb-chain/bsc / Reset

Method Reset

ethdb/batch.go:35–35  ·  view source on GitHub ↗

Reset resets the batch for reuse.

()

Source from the content-addressed store, hash-verified

33
34 // Reset resets the batch for reuse.
35 Reset()
36
37 // Replay replays the batch contents.
38 Replay(w KeyValueWriter) error

Callers 15

InsertReceiptChainMethod · 0.95
trustedDiffLayerLoopMethod · 0.95
CommitMethod · 0.95
freezeMethod · 0.95
gcKvStoreFunction · 0.95
TestDatabaseSuiteFunction · 0.95
CapMethod · 0.95
CommitMethod · 0.95
BenchmarkEncodeBigIntsFunction · 0.65
BenchmarkEncodeU256IntsFunction · 0.65

Implementers 6

tableBatchcore/rawdb/table.go
spongeBatchtests/fuzzers/stacktrie/trie_fuzzer.go
batchethdb/memorydb/memorydb.go
batchethdb/pebble/pebble.go
batchethdb/leveldb/leveldb.go
spongeBatchtrie/trie_test.go

Calls

no outgoing calls

Tested by 12

TestDatabaseSuiteFunction · 0.76
BenchmarkEncodeBigIntsFunction · 0.52
BenchmarkEncodeU256IntsFunction · 0.52
TestUnmarshalFunction · 0.52
TestUnpackTupleFunction · 0.52
TestHashingFunction · 0.52
BenchmarkHashingFunction · 0.52
wsPingTestHandlerFunction · 0.52
TestResetFunction · 0.52