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

Method Store

trie/trienode/proof.go:118–125  ·  view source on GitHub ↗

Store writes the contents of the set to the given database

(target ethdb.KeyValueWriter)

Source from the content-addressed store, hash-verified

116
117// Store writes the contents of the set to the given database
118func (db *ProofSet) Store(target ethdb.KeyValueWriter) {
119 db.lock.RLock()
120 defer db.lock.RUnlock()
121
122 for key, value := range db.nodes {
123 target.Put([]byte(key), value)
124 }
125}
126
127// ProofList stores an ordered list of trie nodes. It implements ethdb.KeyValueWriter.
128type ProofList []rlp.RawValue

Callers 15

newTypeCacheFunction · 0.45
generateMethod · 0.45
testKZGWithPointFunction · 0.45
testKZGWithBlobFunction · 0.45
benchmarkComputeProofFunction · 0.45
benchmarkVerifyProofFunction · 0.45
benchmarkVerifyBlobProofFunction · 0.45
UseCKZGFunction · 0.45
SnapshotMethod · 0.45
UpdateMethod · 0.45

Calls 1

PutMethod · 0.65

Tested by 15

testKZGWithPointFunction · 0.36
testKZGWithBlobFunction · 0.36
benchmarkComputeProofFunction · 0.36
benchmarkVerifyProofFunction · 0.36
benchmarkVerifyBlobProofFunction · 0.36
newTestBlockChainFunction · 0.36
TestInvalidTransactionsFunction · 0.36
TestDroppingFunction · 0.36
newTestServiceFunction · 0.36
SetStateMethod · 0.36