Skip to content

Commit 1c1e377

Browse files
authored
Merge pull request #2759 from bsnowden3/fix-schnorr-verify
Fix schnorr verify
2 parents ff706b1 + d5888f1 commit 1c1e377

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

packages/bitcore-lib-cash/lib/crypto/schnorr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Schnorr.prototype._findSignature = function(d, e) {
198198
return Schnorr().set({
199199
hashbuf: hashbuf,
200200
endian: endian,
201-
sig: {...sig, isSchnorr: true },
201+
sig: sig,
202202
pubkey: pubkey
203203
}).verify().verified;
204204
};

packages/insight/src/components/transaction-details/transaction-details.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ export class TransactionDetailsComponent implements OnInit {
2828
public showCoins = true;
2929
@Input()
3030
public chainNetwork: ChainNetwork;
31+
public confirmations: number;
3132
@Input()
3233
public page: string;
3334

34-
public confirmations;
35-
3635
private COIN = 100000000;
3736
private DEFAULT_RBF_SEQNUMBER = 0xffffffff;
3837

@@ -47,11 +46,8 @@ export class TransactionDetailsComponent implements OnInit {
4746
) {}
4847

4948
public ngOnInit(): void {
50-
this.getConfirmations();
5149
if (this.chainNetwork.chain !== 'ETH') {
52-
if (!this.tx.vin || !this.tx.vin.length) {
53-
this.getCoins();
54-
}
50+
this.getConfirmations();
5551
}
5652
}
5753

@@ -63,15 +59,13 @@ export class TransactionDetailsComponent implements OnInit {
6359
this.tx.vout = data.outputs;
6460
this.tx.fee = this.txProvider.getFee(this.tx);
6561
this.tx.isRBF = _.some(data.inputs, input => {
66-
return (
67-
input.sequenceNumber &&
68-
input.sequenceNumber < this.DEFAULT_RBF_SEQNUMBER - 1
69-
);
62+
return input.sequenceNumber && input.sequenceNumber < this.DEFAULT_RBF_SEQNUMBER - 1;
7063
});
7164
this.tx.hasUnconfirmedInputs = _.some(data.inputs, input => {
7265
return input.mintHeight < 0;
7366
});
7467
this.tx.valueOut = data.outputs.reduce((a, b) => a + b.value, 0);
68+
this.getConfirmations();
7569
});
7670
}
7771

0 commit comments

Comments
 (0)