Skip to content

Commit 02f397c

Browse files
committed
bitcoin: get payment request by paymentreq index, not output index
More direct query to the host - otherwise the host has to lookup the payment request index from the output manually, adding a needless indirection.
1 parent c2e6813 commit 02f397c

File tree

1 file changed

+1
-1
lines changed
  • src/rust/bitbox02-rust/src/hww/api/bitcoin

1 file changed

+1
-1
lines changed

src/rust/bitbox02-rust/src/hww/api/bitcoin/signtx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ async fn _process(request: &pb::BtcSignInitRequest) -> Result<Response, Error> {
792792
return Err(Error::InvalidInput);
793793
}
794794
let payment_request: pb::BtcPaymentRequestRequest =
795-
get_payment_request(output_index, &mut next_response).await?;
795+
get_payment_request(output_payment_request_index, &mut next_response).await?;
796796
payment_request::user_verify(coin_params, &payment_request, format_unit).await?;
797797
if payment_request::validate(
798798
coin_params,

0 commit comments

Comments
 (0)