File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,11 @@ impl HttpRequest for RPCGetTransactionRequestHandler {
69
69
}
70
70
71
71
fn path_regex ( & self ) -> Regex {
72
- Regex :: new ( r#"^/v3/transactions /(?P<txid>[0-9a-f]{64})$"# ) . unwrap ( )
72
+ Regex :: new ( r#"^/v3/transaction /(?P<txid>[0-9a-f]{64})$"# ) . unwrap ( )
73
73
}
74
74
75
75
fn metrics_identifier ( & self ) -> & str {
76
- "/v3/transactions /:txid"
76
+ "/v3/transaction /:txid"
77
77
}
78
78
79
79
/// Try to decode this request.
@@ -183,7 +183,7 @@ impl StacksHttpRequest {
183
183
StacksHttpRequest :: new_for_peer (
184
184
host,
185
185
"GET" . into ( ) ,
186
- format ! ( "/v3/transactions /{}" , & txid) ,
186
+ format ! ( "/v3/transaction /{}" , & txid) ,
187
187
HttpRequestContents :: new ( ) ,
188
188
)
189
189
. expect ( "FATAL: failed to construct request from infallible data" )
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ pub mod getstxtransfercost;
68
68
pub mod gettenure;
69
69
pub mod gettenureinfo;
70
70
pub mod gettenuretip;
71
+ pub mod gettransaction;
71
72
pub mod gettransaction_unconfirmed;
72
- pub mod gettransactions;
73
73
pub mod liststackerdbreplicas;
74
74
pub mod postblock;
75
75
pub mod postblock_proposal;
@@ -135,7 +135,7 @@ impl StacksHttp {
135
135
self . register_rpc_endpoint (
136
136
gettransaction_unconfirmed:: RPCGetTransactionUnconfirmedRequestHandler :: new ( ) ,
137
137
) ;
138
- self . register_rpc_endpoint ( gettransactions :: RPCGetTransactionRequestHandler :: new ( ) ) ;
138
+ self . register_rpc_endpoint ( gettransaction :: RPCGetTransactionRequestHandler :: new ( ) ) ;
139
139
self . register_rpc_endpoint ( getsigner:: GetSignerRequestHandler :: default ( ) ) ;
140
140
self . register_rpc_endpoint (
141
141
liststackerdbreplicas:: RPCListStackerDBReplicasRequestHandler :: new ( ) ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ fn test_try_parse_request() {
64
64
debug ! ( "Request:\n {}\n " , std:: str :: from_utf8( & bytes) . unwrap( ) ) ;
65
65
66
66
let ( parsed_preamble, offset) = http. read_preamble ( & bytes) . unwrap ( ) ;
67
- let mut handler = gettransactions :: RPCGetTransactionRequestHandler :: new ( ) ;
67
+ let mut handler = gettransaction :: RPCGetTransactionRequestHandler :: new ( ) ;
68
68
let mut parsed_request = http
69
69
. handle_try_parse_request (
70
70
& mut handler,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ mod gettenure;
87
87
mod gettenureinfo;
88
88
mod gettenuretip;
89
89
mod gettransaction_unconfirmed;
90
- mod gettransactions ;
90
+ mod gettransaction ;
91
91
mod liststackerdbreplicas;
92
92
mod postblock;
93
93
mod postblock_proposal;
You can’t perform that action at this time.
0 commit comments