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

Method push

crates/execution/txpool/src/invalidation.rs:129–135  ·  view source on GitHub ↗

Adds `key` to the set if not already present. Returns `true` if the key was newly inserted.

(&mut self, key: InvalidationKey)

Source from the content-addressed store, hash-verified

127 /// Adds `key` to the set if not already present. Returns `true` if the key
128 /// was newly inserted.
129 pub fn push(&mut self, key: InvalidationKey) -> bool {
130 if self.keys.contains(&key) {
131 return false;
132 }
133 self.keys.push(key);
134 true
135 }
136
137 /// Builds a watch set from an iterator of keys, de-duplicating as it goes.
138 #[must_use]

Callers 15

install_extMethod · 0.45
add_started_callbackMethod · 0.45
add_rpc_moduleMethod · 0.45
add_add_ons_hookMethod · 0.45
add_node_started_hookMethod · 0.45
install_exexMethod · 0.45
with_extMethod · 0.45
with_extensionMethod · 0.45
mk_chainFunction · 0.45
drainFunction · 0.45

Calls 1

containsMethod · 0.45