Skip to content

Commit 7064b0b

Browse files
authored
Merge pull request #58 from firedancer-io/mjain/add-cos-tracker
block: add cost tracker
2 parents 95bd14b + 16a4674 commit 7064b0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

proto/block.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import "context.proto";
55
import "txn.proto";
66
import "metadata.proto";
77

8+
message CostTracker {
9+
uint64 block_cost = 1;
10+
uint64 vote_cost = 2;
11+
}
12+
813
message BlockContext {
914
// All transactions in this microblock (can be 0)
1015
repeated SanitizedTransaction txns = 1;
@@ -31,6 +36,9 @@ message BlockEffects {
3136

3237
// Bank hash
3338
bytes bank_hash = 3;
39+
40+
// The cost tracker
41+
CostTracker cost_tracker = 4;
3442
}
3543

3644
message BlockFixture {

0 commit comments

Comments
 (0)