MCPcopy Create free account
hub / github.com/base/base / insert

Method insert

crates/execution/payload/src/validity.rs:429–436  ·  view source on GitHub ↗
(&mut self, hash: TxHash, predicate: &ValidityPredicate)

Source from the content-addressed store, hash-verified

427
428impl PredicateBucket {
429 fn insert(&mut self, hash: TxHash, predicate: &ValidityPredicate) {
430 match self {
431 Self::Flat(hashes) => {
432 hashes.insert(hash);
433 }
434 Self::Ordered(bucket) => bucket.insert(hash, predicate),
435 }
436 }
437
438 fn remove(&mut self, hash: TxHash, predicate: &ValidityPredicate) {
439 match self {

Callers 3

parkMethod · 0.45
insert_into_bucketMethod · 0.45
changed_storageFunction · 0.45

Calls 2

ordered_predicateFunction · 0.85
entryMethod · 0.80

Tested by

no test coverage detected