mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(rpc/otterscan): set fullblock.tx_count with block's (#10421)
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
@ -233,7 +233,11 @@ where
|
|||||||
OtsTransactionReceipt { receipt, timestamp }
|
OtsTransactionReceipt { receipt, timestamp }
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
Ok(OtsBlockTransactions { fullblock: block.inner.into(), receipts })
|
|
||||||
|
// use `transaction_count` to indicate the paginate information
|
||||||
|
let mut block = OtsBlockTransactions { fullblock: block.inner.into(), receipts };
|
||||||
|
block.fullblock.transaction_count = tx_len;
|
||||||
|
Ok(block)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Handler for `searchTransactionsBefore`
|
/// Handler for `searchTransactionsBefore`
|
||||||
|
|||||||
Reference in New Issue
Block a user