mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
rpc: small refactor in TransactionSource impl (#10704)
This commit is contained in:
@ -40,16 +40,7 @@ impl TransactionSource {
|
|||||||
match self {
|
match self {
|
||||||
Self::Pool(tx) => {
|
Self::Pool(tx) => {
|
||||||
let hash = tx.hash();
|
let hash = tx.hash();
|
||||||
(
|
(tx, TransactionInfo { hash: Some(hash), ..Default::default() })
|
||||||
tx,
|
|
||||||
TransactionInfo {
|
|
||||||
hash: Some(hash),
|
|
||||||
index: None,
|
|
||||||
block_hash: None,
|
|
||||||
block_number: None,
|
|
||||||
base_fee: None,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
Self::Block { transaction, index, block_hash, block_number, base_fee } => {
|
Self::Block { transaction, index, block_hash, block_number, base_fee } => {
|
||||||
let hash = transaction.hash();
|
let hash = transaction.hash();
|
||||||
|
|||||||
Reference in New Issue
Block a user