File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
testnet/stacks-node/src/burnchains Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -998,7 +998,7 @@ impl BitcoinRegtestController {
998
998
let mut bytes = self . config . burnchain . magic_bytes . as_bytes ( ) . to_vec ( ) ;
999
999
payload
1000
1000
. consensus_serialize ( & mut bytes)
1001
- . map_err ( |_ | BurnchainControllerError :: SerializerError ) ?;
1001
+ . map_err ( |e | BurnchainControllerError :: SerializerError ( e ) ) ?;
1002
1002
bytes
1003
1003
} ;
1004
1004
@@ -1084,7 +1084,7 @@ impl BitcoinRegtestController {
1084
1084
let mut bytes = self . config . burnchain . magic_bytes . as_bytes ( ) . to_vec ( ) ;
1085
1085
payload
1086
1086
. consensus_serialize ( & mut bytes)
1087
- . map_err ( |_ | BurnchainControllerError :: SerializerError ) ?;
1087
+ . map_err ( |e | BurnchainControllerError :: SerializerError ( e ) ) ?;
1088
1088
bytes
1089
1089
} ;
1090
1090
@@ -1165,7 +1165,7 @@ impl BitcoinRegtestController {
1165
1165
let mut bytes = self . config . burnchain . magic_bytes . as_bytes ( ) . to_vec ( ) ;
1166
1166
payload
1167
1167
. consensus_serialize ( & mut bytes)
1168
- . map_err ( |_ | BurnchainControllerError :: SerializerError ) ?;
1168
+ . map_err ( |e | BurnchainControllerError :: SerializerError ( e ) ) ?;
1169
1169
bytes
1170
1170
} ;
1171
1171
@@ -1332,7 +1332,7 @@ impl BitcoinRegtestController {
1332
1332
let mut bytes = self . config . burnchain . magic_bytes . as_bytes ( ) . to_vec ( ) ;
1333
1333
payload
1334
1334
. consensus_serialize ( & mut bytes)
1335
- . map_err ( |_ | BurnchainControllerError :: SerializerError ) ?;
1335
+ . map_err ( |e | BurnchainControllerError :: SerializerError ( e ) ) ?;
1336
1336
bytes
1337
1337
} ;
1338
1338
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ use stacks::chainstate::burn::db::sortdb::SortitionDB;
10
10
use stacks:: chainstate:: burn:: operations:: BlockstackOperationType ;
11
11
use stacks:: chainstate:: burn:: BlockSnapshot ;
12
12
use stacks:: core:: { StacksEpoch , StacksEpochId } ;
13
+ use stacks_common:: codec:: Error as CodecError ;
13
14
14
15
pub use self :: bitcoin_regtest_controller:: { make_bitcoin_indexer, BitcoinRegtestController } ;
15
16
pub use self :: mocknet_controller:: MocknetController ;
@@ -24,7 +25,7 @@ pub enum Error {
24
25
IdenticalOperation ,
25
26
NoUTXOs ,
26
27
TransactionSubmissionFailed ( String ) ,
27
- SerializerError ,
28
+ SerializerError ( CodecError ) ,
28
29
}
29
30
30
31
impl fmt:: Display for Error {
@@ -39,7 +40,7 @@ impl fmt::Display for Error {
39
40
Error :: TransactionSubmissionFailed ( e) => {
40
41
write ! ( f, "Transaction submission failed: {e}" )
41
42
}
42
- Error :: SerializerError => write ! ( f, "Serializer error" ) ,
43
+ Error :: SerializerError ( e ) => write ! ( f, "Serializer error: {e} " ) ,
43
44
}
44
45
}
45
46
}
You can’t perform that action at this time.
0 commit comments