File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
testnet/stacks-node/src/burnchains Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -1953,15 +1953,16 @@ pub fn send_http_request(
1953
1953
// Step 5: decode the HTTP message and return it if it's not an error.
1954
1954
let response_data = match response {
1955
1955
StacksHttpMessage :: Response ( response_data) => response_data,
1956
- StacksHttpMessage :: Error ( path, response) => {
1956
+ StacksHttpMessage :: Error ( _path, response) => {
1957
+ let verb = & request. preamble ( ) . verb ;
1958
+ let path = & request. preamble ( ) . path_and_query_str ;
1959
+ let resp_status_code = response. preamble ( ) . status_code ;
1960
+ let resp_body = response. body ( ) ;
1957
1961
return Err ( io:: Error :: new (
1958
1962
io:: ErrorKind :: Other ,
1959
1963
format ! (
1960
- "Request did not succeed ({} != 200). Path: '{}'" ,
1961
- response. preamble( ) . status_code,
1962
- & path
1963
- )
1964
- . as_str ( ) ,
1964
+ "HTTP '{verb} {path}' did not succeed ({resp_status_code} != 200). Response body = {resp_body:?}"
1965
+ ) ,
1965
1966
) ) ;
1966
1967
}
1967
1968
_ => {
Original file line number Diff line number Diff line change @@ -1662,7 +1662,10 @@ impl BitcoinRegtestController {
1662
1662
)
1663
1663
} else {
1664
1664
// Case 2) ii): Attempt to RBF
1665
- info ! ( "Attempt to replace by fee an outdated leader block commit" ) ;
1665
+ info ! (
1666
+ "Attempt to replace by fee an outdated leader block commit" ;
1667
+ "ongoing_txids" => ?ongoing_op. txids
1668
+ ) ;
1666
1669
self . send_block_commit_operation (
1667
1670
epoch_id,
1668
1671
payload,
@@ -1674,7 +1677,7 @@ impl BitcoinRegtestController {
1674
1677
)
1675
1678
} ;
1676
1679
1677
- if res. is_ok ( ) {
1680
+ if res. is_err ( ) {
1678
1681
self . ongoing_block_commit = Some ( ongoing_op) ;
1679
1682
}
1680
1683
You can’t perform that action at this time.
0 commit comments