File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -1825,15 +1825,7 @@ impl Signer {
1825
1825
1826
1826
#[ cfg( any( test, feature = "testing" ) ) ]
1827
1827
fn get_signer_protocol_version ( & self ) -> u64 {
1828
- use crate :: v0:: tests:: TEST_PIN_SUPPORTED_SIGNER_PROTOCOL_VERSION ;
1829
- let public_keys = TEST_PIN_SUPPORTED_SIGNER_PROTOCOL_VERSION . get ( ) ;
1830
- if let Some ( version) = public_keys. get (
1831
- & stacks_common:: types:: chainstate:: StacksPublicKey :: from_private ( & self . private_key ) ,
1832
- ) {
1833
- warn ! ( "{self}: signer version is pinned to {version}" ) ;
1834
- return * version;
1835
- }
1836
- self . supported_signer_protocol_version
1828
+ self . test_get_signer_protocol_version ( )
1837
1829
}
1838
1830
}
1839
1831
Original file line number Diff line number Diff line change @@ -157,4 +157,16 @@ impl Signer {
157
157
warn ! ( "{self}: Block validation submission is no longer stalled due to testing directive. Continuing..." ) ;
158
158
}
159
159
}
160
+
161
+ /// Get the pinned signer version for the signer
162
+ pub fn test_get_signer_protocol_version ( & self ) -> u64 {
163
+ let public_keys = TEST_PIN_SUPPORTED_SIGNER_PROTOCOL_VERSION . get ( ) ;
164
+ if let Some ( version) = public_keys. get (
165
+ & stacks_common:: types:: chainstate:: StacksPublicKey :: from_private ( & self . private_key ) ,
166
+ ) {
167
+ warn ! ( "{self}: signer version is pinned to {version}" ) ;
168
+ return * version;
169
+ }
170
+ self . supported_signer_protocol_version
171
+ }
160
172
}
You can’t perform that action at this time.
0 commit comments