@@ -4498,7 +4498,7 @@ fn stack_agg_increase() {
4498
4498
. clone ( )
4499
4499
. expect_u128 ( )
4500
4500
. unwrap ( ) ,
4501
- Some ( alice_signature_increase) ,
4501
+ Some ( alice_signature_increase. clone ( ) ) ,
4502
4502
& alice. public_key ,
4503
4503
u128:: MAX ,
4504
4504
1 ,
@@ -4596,16 +4596,52 @@ fn stack_agg_increase() {
4596
4596
& bob_err_increase_result_expected
4597
4597
) ;
4598
4598
4599
+ let bob_aggregate_increase_tx = & tx_block. receipts . get ( 4 ) . unwrap ( ) ;
4600
+
4599
4601
// Fetch the aggregate increase result & check that value is true
4600
- let bob_aggregate_increase_result = & tx_block
4601
- . receipts
4602
- . get ( 4 )
4603
- . unwrap ( )
4602
+ let bob_aggregate_increase_result = bob_aggregate_increase_tx
4604
4603
. result
4605
4604
. clone ( )
4606
4605
. expect_result_ok ( )
4607
4606
. unwrap ( ) ;
4608
- assert_eq ! ( bob_aggregate_increase_result, & Value :: Bool ( true ) ) ;
4607
+ assert_eq ! ( bob_aggregate_increase_result, Value :: Bool ( true ) ) ;
4608
+
4609
+ let aggregation_increase_event = & bob_aggregate_increase_tx. events [ 0 ] ;
4610
+
4611
+ let expected_result = Value :: okay ( Value :: Tuple (
4612
+ TupleData :: from_data ( vec ! [
4613
+ (
4614
+ "stacker" . into( ) ,
4615
+ Value :: Principal ( PrincipalData :: from( bob. address. clone( ) ) ) ,
4616
+ ) ,
4617
+ ( "total-locked" . into( ) , Value :: UInt ( min_ustx * 2 ) ) ,
4618
+ ] )
4619
+ . unwrap ( ) ,
4620
+ ) )
4621
+ . unwrap ( ) ;
4622
+
4623
+ let increase_op_data = HashMap :: from ( [
4624
+ (
4625
+ "signer-sig" ,
4626
+ Value :: some ( Value :: buff_from ( alice_signature_increase) . unwrap ( ) ) . unwrap ( ) ,
4627
+ ) ,
4628
+ (
4629
+ "signer-key" ,
4630
+ Value :: buff_from ( alice. public_key . to_bytes_compressed ( ) ) . unwrap ( ) ,
4631
+ ) ,
4632
+ ( "max-amount" , Value :: UInt ( u128:: MAX ) ) ,
4633
+ ( "auth-id" , Value :: UInt ( 1 ) ) ,
4634
+ ] ) ;
4635
+
4636
+ let common_data = PoxPrintFields {
4637
+ op_name : "stack-aggregation-increase" . to_string ( ) ,
4638
+ stacker : Value :: Principal ( PrincipalData :: from ( bob. address . clone ( ) ) ) ,
4639
+ balance : Value :: UInt ( 1000000000000000000 ) ,
4640
+ locked : Value :: UInt ( 0 ) ,
4641
+ burnchain_unlock_height : Value :: UInt ( 0 ) ,
4642
+ } ;
4643
+
4644
+ check_pox_print_event ( & aggregation_increase_event, common_data, increase_op_data) ;
4609
4645
4610
4646
// Check that Bob's second pool has an assigned reward index of 1
4611
4647
let bob_aggregate_commit_reward_index = & tx_block
@@ -6502,7 +6538,7 @@ fn test_scenario_one() {
6502
6538
// Bob solo stacker-signer setup
6503
6539
let mut bob = StackerSignerInfo :: new ( ) ;
6504
6540
let default_initial_balances: u64 = 1_000_000_000_000_000_000 ;
6505
- let mut initial_balances = vec ! [
6541
+ let initial_balances = vec ! [
6506
6542
( alice. principal. clone( ) , default_initial_balances) ,
6507
6543
( bob. principal. clone( ) , default_initial_balances) ,
6508
6544
] ;
@@ -6911,7 +6947,7 @@ fn test_scenario_two() {
6911
6947
let mut dave = StackerSignerInfo :: new ( ) ;
6912
6948
6913
6949
let default_initial_balances = 1_000_000_000_000_000_000 ;
6914
- let mut initial_balances = vec ! [
6950
+ let initial_balances = vec ! [
6915
6951
( alice. principal. clone( ) , default_initial_balances) ,
6916
6952
( bob. principal. clone( ) , default_initial_balances) ,
6917
6953
( carl. principal. clone( ) , default_initial_balances) ,
@@ -7252,7 +7288,7 @@ fn test_scenario_three() {
7252
7288
// Bob stacker signer setup
7253
7289
let mut bob = StackerSignerInfo :: new ( ) ;
7254
7290
// Carl service signer setup
7255
- let mut carl = StackerSignerInfo :: new ( ) ;
7291
+ let carl = StackerSignerInfo :: new ( ) ;
7256
7292
// David stacking pool operator setup
7257
7293
let mut david = StackerSignerInfo :: new ( ) ;
7258
7294
// Eve pool stacker setup
@@ -7729,7 +7765,7 @@ fn test_scenario_four() {
7729
7765
let mut bob = StackerSignerInfo :: new ( ) ;
7730
7766
7731
7767
let default_initial_balances = 1_000_000_000_000_000_000 ;
7732
- let mut initial_balances = vec ! [
7768
+ let initial_balances = vec ! [
7733
7769
( alice. principal. clone( ) , default_initial_balances) ,
7734
7770
( bob. principal. clone( ) , default_initial_balances) ,
7735
7771
] ;
@@ -8770,7 +8806,7 @@ fn test_scenario_five() {
8770
8806
let mut mallory = StackerSignerInfo :: new ( ) ;
8771
8807
8772
8808
let default_initial_balances = 1_000_000_000_000_000_000 ;
8773
- let mut initial_balances = vec ! [
8809
+ let initial_balances = vec ! [
8774
8810
( alice. principal. clone( ) , default_initial_balances) ,
8775
8811
( bob. principal. clone( ) , default_initial_balances) ,
8776
8812
( carl. principal. clone( ) , default_initial_balances) ,
0 commit comments