Skip to content

v1.1.0: Fix and adapt for mainnet and testnet (#11)

Compare
Choose a tag to compare
@Cofresi Cofresi released this 20 May 23:57
· 5 commits to master since this release
5daf947

Fixed and adapted for mainnet and testnet

  • fix jsdoc

  • adding network param

  • updating tests

  • add mainnet blocks and test

  • correct mainnet test target

  • replace isValidTarget with hasValidTarget

  • fix getNetworkParams

  • replace 150 with param powTargetSpacing

  • remove throw error

  • revert to u256 primitive

  • rem getDoubleFrom256 usage

  • rem brackets

  • improve comments

  • reduce reduce function

  • rem getTarget from export

  • add test headers and fix tests

  • bump version

  • rem utils

  • ignore .idea

  • update package lock

  • rem unnecessary bn.js from deps

  • update package lock