File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -1682,9 +1682,11 @@ impl RelayerThread {
1682
1682
1683
1683
// update local state
1684
1684
last_committed. set_txid ( & txid) ;
1685
- self . globals
1686
- . counters
1687
- . bump_naka_submitted_commits ( last_committed. burn_tip . block_height , tip_height) ;
1685
+ self . globals . counters . bump_naka_submitted_commits (
1686
+ last_committed. burn_tip . block_height ,
1687
+ tip_height,
1688
+ last_committed. block_commit . burn_fee ,
1689
+ ) ;
1688
1690
self . last_committed = Some ( last_committed) ;
1689
1691
1690
1692
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ pub struct Counters {
117
117
pub naka_signer_pushed_blocks : RunLoopCounter ,
118
118
pub naka_miner_directives : RunLoopCounter ,
119
119
pub naka_submitted_commit_last_stacks_tip : RunLoopCounter ,
120
+ pub naka_submitted_commit_last_commit_amount : RunLoopCounter ,
120
121
121
122
pub naka_miner_current_rejections : RunLoopCounter ,
122
123
pub naka_miner_current_rejections_timeout_secs : RunLoopCounter ,
@@ -178,6 +179,7 @@ impl Counters {
178
179
& self ,
179
180
committed_burn_height : u64 ,
180
181
committed_stacks_height : u64 ,
182
+ committed_sats_amount : u64 ,
181
183
) {
182
184
Counters :: inc ( & self . naka_submitted_commits ) ;
183
185
Counters :: set (
@@ -188,6 +190,10 @@ impl Counters {
188
190
& self . naka_submitted_commit_last_stacks_tip ,
189
191
committed_stacks_height,
190
192
) ;
193
+ Counters :: set (
194
+ & self . naka_submitted_commit_last_commit_amount ,
195
+ committed_sats_amount,
196
+ ) ;
191
197
}
192
198
193
199
pub fn bump_naka_mined_blocks ( & self ) {
Original file line number Diff line number Diff line change @@ -11355,6 +11355,8 @@ fn rbf_on_config_change() {
11355
11355
11356
11356
let commits_before = counters. naka_submitted_commits . get ( ) ;
11357
11357
11358
+ let commit_amount_before = counters. naka_submitted_commit_last_commit_amount . get ( ) ;
11359
+
11358
11360
info ! ( "---- Updating config ----" ) ;
11359
11361
11360
11362
update_config ( 155000 , 57 ) ;
@@ -11365,6 +11367,10 @@ fn rbf_on_config_change() {
11365
11367
} )
11366
11368
. expect ( "Expected new commit after config change" ) ;
11367
11369
11370
+ let commit_amount_after = counters. naka_submitted_commit_last_commit_amount . get ( ) ;
11371
+ assert_eq ! ( commit_amount_after, 155000 ) ;
11372
+ assert_ne ! ( commit_amount_after, commit_amount_before) ;
11373
+
11368
11374
coord_channel
11369
11375
. lock ( )
11370
11376
. expect ( "Mutex poisoned" )
You can’t perform that action at this time.
0 commit comments