View full block with map_block_full.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
mod map_block_meta;
|
||||
mod map_block_full;
|
||||
mod map_contract_events;
|
||||
mod map_filter_transactions;
|
||||
mod pb;
|
||||
|
||||
6
ethereum-explorer/src/map_block_full.rs
Normal file
6
ethereum-explorer/src/map_block_full.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
use substreams_ethereum::pb::eth::v2::Block;
|
||||
|
||||
#[substreams::handlers::map]
|
||||
fn map_block_full(blk: Block) -> Result<Block, substreams::errors::Error> {
|
||||
Ok(blk)
|
||||
}
|
||||
@@ -73,7 +73,6 @@ fn apply_filter(transaction: &TransactionTrace, filters: &TransactionFilterParam
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user