We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a34bbc commit 2da2e2eCopy full SHA for 2da2e2e
crates/rpc/src/v1/tests/helpers/miner_service.rs
@@ -254,6 +254,14 @@ impl MinerService for TestMinerService {
254
.map(|tx| Arc::new(VerifiedTransaction::from_pending_block_transaction(tx)))
255
}
256
257
+ fn transaction_if_readable(&self, hash: &H256) -> Option<Arc<VerifiedTransaction>> {
258
+ self.pending_transactions
259
+ .try_lock()?
260
+ .get(hash)
261
+ .cloned()
262
+ .map(|tx| Arc::new(VerifiedTransaction::from_pending_block_transaction(tx)))
263
+ }
264
+
265
fn remove_transaction(&self, hash: &H256) -> Option<Arc<VerifiedTransaction>> {
266
self.pending_transactions
267
.lock()
@@ -401,4 +409,6 @@ impl MinerService for TestMinerService {
401
409
402
410
403
411
412
413
404
414
0 commit comments