Merge pull request #2899 from filecoin-project/feat/cw-block-basefee
chainwatch: Record parent_base_fee in blocks
This commit is contained in:
commit
70f93da5dd
@ -30,8 +30,8 @@ create table if not exists messages
|
|||||||
"to" text not null,
|
"to" text not null,
|
||||||
nonce bigint not null,
|
nonce bigint not null,
|
||||||
value text not null,
|
value text not null,
|
||||||
gas_fee_cap bigint not null,
|
gas_fee_cap text not null,
|
||||||
gas_premium bigint not null,
|
gas_premium text not null,
|
||||||
gas_limit bigint not null,
|
gas_limit bigint not null,
|
||||||
method bigint,
|
method bigint,
|
||||||
params bytea
|
params bytea
|
||||||
|
@ -112,6 +112,7 @@ create table if not exists blocks
|
|||||||
ticket bytea not null,
|
ticket bytea not null,
|
||||||
election_proof bytea,
|
election_proof bytea,
|
||||||
win_count bigint,
|
win_count bigint,
|
||||||
|
parent_base_fee text not null,
|
||||||
forksig bigint not null
|
forksig bigint not null
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -402,7 +403,7 @@ create temp table b (like blocks excluding constraints) on commit drop;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt2, err := tx.Prepare(`copy b (cid, parentWeight, parentStateRoot, height, miner, "timestamp", ticket, election_proof, win_count, forksig) from stdin`)
|
stmt2, err := tx.Prepare(`copy b (cid, parentWeight, parentStateRoot, height, miner, "timestamp", ticket, election_proof, win_count, parent_base_fee, forksig) from stdin`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -432,6 +433,7 @@ create temp table b (like blocks excluding constraints) on commit drop;
|
|||||||
bh.Ticket.VRFProof,
|
bh.Ticket.VRFProof,
|
||||||
eproof,
|
eproof,
|
||||||
winCount,
|
winCount,
|
||||||
|
bh.ParentBaseFee.String(),
|
||||||
bh.ForkSignaling); err != nil {
|
bh.ForkSignaling); err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user