Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9c6f35fe6 | ||
|
|
2a8c73c131 |
@ -22,7 +22,7 @@ java {
|
||||
|
||||
dependencies {
|
||||
implementation(project(':drongo'))
|
||||
implementation('com.sparrowwallet:hid4java:0.8.0')
|
||||
implementation('com.sparrowwallet:hid4java:0.8.1')
|
||||
implementation('com.fazecast:jSerialComm:2.11.4')
|
||||
implementation('com.sparrowwallet:usb4java:1.3.6')
|
||||
implementation('co.nstant.in:cbor:0.9')
|
||||
|
||||
@ -270,6 +270,9 @@ public class TrezorDevice implements Closeable, ProtocolCallbacks {
|
||||
private Message sendResponsePrev(Map<Sha256Hash, PrevTx> prevTxs, TrezorMessageBitcoin.TxRequest.RequestType requestType,
|
||||
TrezorMessageBitcoin.TxRequest.TxRequestDetailsType details) throws DeviceException {
|
||||
PrevTx prevTx = prevTxs.get(Sha256Hash.wrap(details.getTxHash().toByteArray()));
|
||||
if(prevTx == null) {
|
||||
throw new DeviceException("This device requires the full previous transaction for every input, which is omitted from some PSBTs, such as those transferred via QR");
|
||||
}
|
||||
if(requestType == TrezorMessageBitcoin.TxRequest.RequestType.TXINPUT) {
|
||||
TrezorMessageBitcoin.PrevInput prevInput = prevTx.prevInputs().get(details.getRequestIndex());
|
||||
TrezorMessageBitcoin.TxAckPrevInput txAckPrevInput = TrezorMessageBitcoin.TxAckPrevInput.newBuilder()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user