melis-fork-claimer
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -6,3 +6,3 @@ { | ||
"license": "ISC", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"main": "src/index.js", | ||
@@ -9,0 +9,0 @@ "scripts": { |
@@ -189,2 +189,3 @@ // | ||
options['no-cors'] = true | ||
options['mode'] = 'no-cors' | ||
if (!options.timeout) | ||
@@ -772,3 +773,3 @@ options.timeout = 20000 | ||
unspentsMatch = unspentsMatch && (u.hash === unspent.hash && u.n === unspent.n) | ||
console.log("HasTargetAddres: " + hasTargetAddress + " fees: " + networkFees + " unspentsMatch: " + unspentsMatch) | ||
console.log("[verifyClaimProposal] HasTargetAddres: " + hasTargetAddress + " fees: " + networkFees + " unspentsMatch: " + unspentsMatch) | ||
return unspentsMatch && hasTargetAddress | ||
@@ -888,7 +889,10 @@ } | ||
console.log("Claim proposal: ", claimProposal) | ||
if (unspents.length !== 1) | ||
throw "Unexpected number of unspents (should be 1): " + unspents.length | ||
const unspent = unspents[0] | ||
const verified = this.verifyClaimProposal(claimProposal, unspent, targetAddress) | ||
if (!verified) | ||
console.log("Claim does not meet minimum sanity checks") | ||
if (!params.ignoreVerification) | ||
doExit() | ||
throw "Claim does not meet minimum sanity checks" | ||
//if (!params.ignoreVerification) | ||
// doExit() | ||
const claimSignatures = this.prepareSignaturesForClaim(melis, claimProposal) | ||
@@ -895,0 +899,0 @@ const broadcastResult = await melis.submitForkClaim(claimSignatures.id, claimSignatures.signatures) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26615
818