Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

melis-fork-claimer

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

melis-fork-claimer - npm Package Compare versions

Comparing version 0.5.6 to 0.5.7

2

package.json

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc