@@ -3234,54 +3234,53 @@ fn test_stacks_on_burnchain_ops() {
3234
3234
let ( mut burn_ops, mut tenure_change, miner_key) =
3235
3235
peer. begin_nakamoto_tenure ( TenureChangeCause :: BlockFound ) ;
3236
3236
3237
- let mut new_burn_ops = vec ! [ ] ;
3238
- new_burn_ops. push ( BlockstackOperationType :: DelegateStx ( DelegateStxOp {
3239
- sender : addr. clone ( ) ,
3240
- delegate_to : recipient_addr. clone ( ) ,
3241
- reward_addr : None ,
3242
- delegated_ustx : 1 ,
3243
- until_burn_height : None ,
3244
-
3245
- // mocked
3246
- txid : Txid ( [ i; 32 ] ) ,
3247
- vtxindex : 11 ,
3248
- block_height : block_height + 1 ,
3249
- burn_header_hash : BurnchainHeaderHash ( [ 0x00 ; 32 ] ) ,
3250
- } ) ) ;
3251
- new_burn_ops. push ( BlockstackOperationType :: StackStx ( StackStxOp {
3252
- sender : addr. clone ( ) ,
3253
- reward_addr : PoxAddress :: Standard (
3254
- recipient_addr. clone ( ) ,
3255
- Some ( AddressHashMode :: SerializeP2PKH ) ,
3256
- ) ,
3257
- stacked_ustx : 1 ,
3258
- num_cycles : 1 ,
3259
- signer_key : Some ( StacksPublicKeyBuffer :: from_public_key (
3260
- & StacksPublicKey :: from_private ( & recipient_private_key) ,
3261
- ) ) ,
3262
- max_amount : Some ( 1 ) ,
3263
- auth_id : Some ( i as u32 ) ,
3264
-
3265
- // mocked
3266
- txid : Txid ( [ i | 0x80 ; 32 ] ) ,
3267
- vtxindex : 12 ,
3268
- block_height : block_height + 1 ,
3269
- burn_header_hash : BurnchainHeaderHash ( [ 0x00 ; 32 ] ) ,
3270
- } ) ) ;
3271
- new_burn_ops. push ( BlockstackOperationType :: TransferStx ( TransferStxOp {
3272
- sender : addr. clone ( ) ,
3273
- recipient : recipient_addr. clone ( ) ,
3274
- transfered_ustx : 1 ,
3275
- memo : vec ! [ 0x2 ] ,
3276
-
3277
- // mocked
3278
- txid : Txid ( [ i | 0x40 ; 32 ] ) ,
3279
- vtxindex : 13 ,
3280
- block_height : block_height + 1 ,
3281
- burn_header_hash : BurnchainHeaderHash ( [ 0x00 ; 32 ] ) ,
3282
- } ) ) ;
3283
- new_burn_ops. push ( BlockstackOperationType :: VoteForAggregateKey (
3284
- VoteForAggregateKeyOp {
3237
+ let mut new_burn_ops = vec ! [
3238
+ BlockstackOperationType :: DelegateStx ( DelegateStxOp {
3239
+ sender: addr. clone( ) ,
3240
+ delegate_to: recipient_addr. clone( ) ,
3241
+ reward_addr: None ,
3242
+ delegated_ustx: 1 ,
3243
+ until_burn_height: None ,
3244
+
3245
+ // mocked
3246
+ txid: Txid ( [ i; 32 ] ) ,
3247
+ vtxindex: 11 ,
3248
+ block_height: block_height + 1 ,
3249
+ burn_header_hash: BurnchainHeaderHash ( [ 0x00 ; 32 ] ) ,
3250
+ } ) ,
3251
+ BlockstackOperationType :: StackStx ( StackStxOp {
3252
+ sender: addr. clone( ) ,
3253
+ reward_addr: PoxAddress :: Standard (
3254
+ recipient_addr. clone( ) ,
3255
+ Some ( AddressHashMode :: SerializeP2PKH ) ,
3256
+ ) ,
3257
+ stacked_ustx: 1 ,
3258
+ num_cycles: 1 ,
3259
+ signer_key: Some ( StacksPublicKeyBuffer :: from_public_key(
3260
+ & StacksPublicKey :: from_private( & recipient_private_key) ,
3261
+ ) ) ,
3262
+ max_amount: Some ( 1 ) ,
3263
+ auth_id: Some ( i as u32 ) ,
3264
+
3265
+ // mocked
3266
+ txid: Txid ( [ i | 0x80 ; 32 ] ) ,
3267
+ vtxindex: 12 ,
3268
+ block_height: block_height + 1 ,
3269
+ burn_header_hash: BurnchainHeaderHash ( [ 0x00 ; 32 ] ) ,
3270
+ } ) ,
3271
+ BlockstackOperationType :: TransferStx ( TransferStxOp {
3272
+ sender: addr. clone( ) ,
3273
+ recipient: recipient_addr. clone( ) ,
3274
+ transfered_ustx: 1 ,
3275
+ memo: vec![ 0x2 ] ,
3276
+
3277
+ // mocked
3278
+ txid: Txid ( [ i | 0x40 ; 32 ] ) ,
3279
+ vtxindex: 13 ,
3280
+ block_height: block_height + 1 ,
3281
+ burn_header_hash: BurnchainHeaderHash ( [ 0x00 ; 32 ] ) ,
3282
+ } ) ,
3283
+ BlockstackOperationType :: VoteForAggregateKey ( VoteForAggregateKeyOp {
3285
3284
sender: addr. clone( ) ,
3286
3285
aggregate_key: StacksPublicKeyBuffer :: from_public_key(
3287
3286
& StacksPublicKey :: from_private( & agg_private_key) ,
@@ -3298,8 +3297,8 @@ fn test_stacks_on_burnchain_ops() {
3298
3297
vtxindex: 14 ,
3299
3298
block_height: block_height + 1 ,
3300
3299
burn_header_hash: BurnchainHeaderHash ( [ 0x00 ; 32 ] ) ,
3301
- } ,
3302
- ) ) ;
3300
+ } ) ,
3301
+ ] ;
3303
3302
3304
3303
extra_burn_ops. push ( new_burn_ops. clone ( ) ) ;
3305
3304
burn_ops. append ( & mut new_burn_ops) ;
0 commit comments