@@ -2063,7 +2063,6 @@ impl BitcoinRegtestController {
2063
2063
epoch_id : StacksEpochId ,
2064
2064
operation : BlockstackOperationType ,
2065
2065
op_signer : & mut BurnchainOpSigner ,
2066
- _attempt : u64 ,
2067
2066
) -> Result < SerializedTx , BurnchainControllerError > {
2068
2067
let transaction = match operation {
2069
2068
BlockstackOperationType :: LeaderBlockCommit ( payload) => {
@@ -2254,9 +2253,9 @@ impl BurnchainController for BitcoinRegtestController {
2254
2253
epoch_id : StacksEpochId ,
2255
2254
operation : BlockstackOperationType ,
2256
2255
op_signer : & mut BurnchainOpSigner ,
2257
- attempt : u64 ,
2256
+ _attempt : u64 ,
2258
2257
) -> Result < Txid , BurnchainControllerError > {
2259
- let transaction = self . make_operation_tx ( epoch_id, operation, op_signer, attempt ) ?;
2258
+ let transaction = self . make_operation_tx ( epoch_id, operation, op_signer) ?;
2260
2259
self . send_transaction ( transaction)
2261
2260
}
2262
2261
@@ -3058,7 +3057,7 @@ mod tests {
3058
3057
pub fn create_templated_leader_key_op ( ) -> LeaderKeyRegisterOp {
3059
3058
LeaderKeyRegisterOp {
3060
3059
consensus_hash : ConsensusHash ( [ 0u8 ; 20 ] ) ,
3061
- public_key : VRFPublicKey :: from_private ( & VRFPrivateKey :: new ( ) ) ,
3060
+ public_key : VRFPublicKey :: from_private ( & VRFPrivateKey :: from_bytes ( & [ 0u8 ; 32 ] ) . unwrap ( ) ) ,
3062
3061
memo : vec ! [ ] ,
3063
3062
txid : Txid ( [ 3u8 ; 32 ] ) ,
3064
3063
vtxindex : 0 ,
@@ -3893,7 +3892,6 @@ mod tests {
3893
3892
StacksEpochId :: Epoch31 ,
3894
3893
BlockstackOperationType :: LeaderBlockCommit ( commit_op) ,
3895
3894
& mut op_signer,
3896
- 0 ,
3897
3895
)
3898
3896
. expect ( "Build leader block commit should work" ) ;
3899
3897
@@ -3937,14 +3935,13 @@ mod tests {
3937
3935
StacksEpochId :: Epoch31 ,
3938
3936
BlockstackOperationType :: LeaderKeyRegister ( leader_key_op) ,
3939
3937
& mut op_signer,
3940
- 0 ,
3941
3938
)
3942
3939
. expect ( "Build leader block commit should work" ) ;
3943
3940
3944
3941
assert ! ( op_signer. is_disposed( ) ) ;
3945
3942
3946
3943
assert_eq ! (
3947
- "01000000014d9e9dc7d126446e90dd013f023937eba9cb2c88f4d12707400a3ede994a62c5000000008b483045022100f25168ce653d1f40aa7bf48d5dcad97e96ecdeaa8c142f74316bf6e151c918b002201211c493f3add7302d286af9009a18c685f8733504ffda9b80963bd6900819f40141044227d7e5c0997524ce011c126f0464d43e7518872a9b1ad29436ac5142d73eab5fb48d764676900fc2fac56917412114bf7dfafe51f715cf466fe0c1a6c69d11fdffffff020000000000000000396a3754335e0000000000000000000000000000000000000000edb3ebc987bf6911e64048c5637c85687815fb777bf882bce10a4d692dc9631ee0a3052a010000001976a9145e52c53cb96b55f0e3d719adbca21005bc54cb2e88ac00000000 " ,
3944
+ "01000000014d9e9dc7d126446e90dd013f023937eba9cb2c88f4d12707400a3ede994a62c5000000008b483045022100c8694688b4269585ef63bfeb96d017bafae02621ebd0b5012e7564d3efcb71f70220070528674f75ca3503246030f064a85d2010256336372b246100f29ba21bf28b0141044227d7e5c0997524ce011c126f0464d43e7518872a9b1ad29436ac5142d73eab5fb48d764676900fc2fac56917412114bf7dfafe51f715cf466fe0c1a6c69d11fdffffff020000000000000000396a3754335e00000000000000000000000000000000000000003b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29e0a3052a010000001976a9145e52c53cb96b55f0e3d719adbca21005bc54cb2e88ac00000000 " ,
3948
3945
tx. to_hex( )
3949
3946
) ;
3950
3947
}
0 commit comments