@@ -4393,7 +4393,7 @@ fn stack_agg_increase() {
4393
4393
. clone ( )
4394
4394
. expect_u128 ( )
4395
4395
. unwrap ( ) ,
4396
- Some ( alice_signature_increase) ,
4396
+ Some ( alice_signature_increase. clone ( ) ) ,
4397
4397
& alice. public_key ,
4398
4398
u128:: MAX ,
4399
4399
1 ,
@@ -4491,16 +4491,52 @@ fn stack_agg_increase() {
4491
4491
& bob_err_increase_result_expected
4492
4492
) ;
4493
4493
4494
+ let bob_aggregate_increase_tx = & tx_block. receipts . get ( 4 ) . unwrap ( ) ;
4495
+
4494
4496
// Fetch the aggregate increase result & check that value is true
4495
- let bob_aggregate_increase_result = & tx_block
4496
- . receipts
4497
- . get ( 4 )
4498
- . unwrap ( )
4497
+ let bob_aggregate_increase_result = bob_aggregate_increase_tx
4499
4498
. result
4500
4499
. clone ( )
4501
4500
. expect_result_ok ( )
4502
4501
. unwrap ( ) ;
4503
- assert_eq ! ( bob_aggregate_increase_result, & Value :: Bool ( true ) ) ;
4502
+ assert_eq ! ( bob_aggregate_increase_result, Value :: Bool ( true ) ) ;
4503
+
4504
+ let aggregation_increase_event = & bob_aggregate_increase_tx. events [ 0 ] ;
4505
+
4506
+ let expected_result = Value :: okay ( Value :: Tuple (
4507
+ TupleData :: from_data ( vec ! [
4508
+ (
4509
+ "stacker" . into( ) ,
4510
+ Value :: Principal ( PrincipalData :: from( bob. address. clone( ) ) ) ,
4511
+ ) ,
4512
+ ( "total-locked" . into( ) , Value :: UInt ( min_ustx * 2 ) ) ,
4513
+ ] )
4514
+ . unwrap ( ) ,
4515
+ ) )
4516
+ . unwrap ( ) ;
4517
+
4518
+ let increase_op_data = HashMap :: from ( [
4519
+ (
4520
+ "signer-sig" ,
4521
+ Value :: some ( Value :: buff_from ( alice_signature_increase) . unwrap ( ) ) . unwrap ( ) ,
4522
+ ) ,
4523
+ (
4524
+ "signer-key" ,
4525
+ Value :: buff_from ( alice. public_key . to_bytes_compressed ( ) ) . unwrap ( ) ,
4526
+ ) ,
4527
+ ( "max-amount" , Value :: UInt ( u128:: MAX ) ) ,
4528
+ ( "auth-id" , Value :: UInt ( 1 ) ) ,
4529
+ ] ) ;
4530
+
4531
+ let common_data = PoxPrintFields {
4532
+ op_name : "stack-aggregation-increase" . to_string ( ) ,
4533
+ stacker : Value :: Principal ( PrincipalData :: from ( bob. address . clone ( ) ) ) ,
4534
+ balance : Value :: UInt ( 1000000000000000000 ) ,
4535
+ locked : Value :: UInt ( 0 ) ,
4536
+ burnchain_unlock_height : Value :: UInt ( 0 ) ,
4537
+ } ;
4538
+
4539
+ check_pox_print_event ( & aggregation_increase_event, common_data, increase_op_data) ;
4504
4540
4505
4541
// Check that Bob's second pool has an assigned reward index of 1
4506
4542
let bob_aggregate_commit_reward_index = & tx_block
@@ -6397,7 +6433,7 @@ fn test_scenario_one() {
6397
6433
// Bob solo stacker-signer setup
6398
6434
let mut bob = StackerSignerInfo :: new ( ) ;
6399
6435
let default_initial_balances: u64 = 1_000_000_000_000_000_000 ;
6400
- let mut initial_balances = vec ! [
6436
+ let initial_balances = vec ! [
6401
6437
( alice. principal. clone( ) , default_initial_balances) ,
6402
6438
( bob. principal. clone( ) , default_initial_balances) ,
6403
6439
] ;
@@ -6806,7 +6842,7 @@ fn test_scenario_two() {
6806
6842
let mut dave = StackerSignerInfo :: new ( ) ;
6807
6843
6808
6844
let default_initial_balances = 1_000_000_000_000_000_000 ;
6809
- let mut initial_balances = vec ! [
6845
+ let initial_balances = vec ! [
6810
6846
( alice. principal. clone( ) , default_initial_balances) ,
6811
6847
( bob. principal. clone( ) , default_initial_balances) ,
6812
6848
( carl. principal. clone( ) , default_initial_balances) ,
@@ -7147,7 +7183,7 @@ fn test_scenario_three() {
7147
7183
// Bob stacker signer setup
7148
7184
let mut bob = StackerSignerInfo :: new ( ) ;
7149
7185
// Carl service signer setup
7150
- let mut carl = StackerSignerInfo :: new ( ) ;
7186
+ let carl = StackerSignerInfo :: new ( ) ;
7151
7187
// David stacking pool operator setup
7152
7188
let mut david = StackerSignerInfo :: new ( ) ;
7153
7189
// Eve pool stacker setup
@@ -7624,7 +7660,7 @@ fn test_scenario_four() {
7624
7660
let mut bob = StackerSignerInfo :: new ( ) ;
7625
7661
7626
7662
let default_initial_balances = 1_000_000_000_000_000_000 ;
7627
- let mut initial_balances = vec ! [
7663
+ let initial_balances = vec ! [
7628
7664
( alice. principal. clone( ) , default_initial_balances) ,
7629
7665
( bob. principal. clone( ) , default_initial_balances) ,
7630
7666
] ;
@@ -8564,7 +8600,7 @@ fn test_scenario_five() {
8564
8600
let mut mallory = StackerSignerInfo :: new ( ) ;
8565
8601
8566
8602
let default_initial_balances = 1_000_000_000_000_000_000 ;
8567
- let mut initial_balances = vec ! [
8603
+ let initial_balances = vec ! [
8568
8604
( alice. principal. clone( ) , default_initial_balances) ,
8569
8605
( bob. principal. clone( ) , default_initial_balances) ,
8570
8606
( carl. principal. clone( ) , default_initial_balances) ,
0 commit comments