Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitpay / bitcore-lib-cash / 18 / 1
96%
master: 96%

Build:
LAST BUILD BRANCH: bug/estimateFee
DEFAULT BRANCH: master
Ran 22 Aug 2018 09:58AM PDT
Files 47
Run time 45s
Badge
Badge Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Aug 2018 - 9:55 coverage: 95.954% (+0.003%) from 95.951%
18.1

Pull #13

travis-ci

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
fix sighash of coinbase transaction

bitcore-lib-cash was not able to compute the sighash of a coinbase
transaction. This is understandable because wallets built on bitcore
would probably not normally need to compute the sighash of a coinbase
transaction, which is something only miners and full nodes need to do.
Nonetheless, there are reasons why someone might want to use bitcore to
compute the sighash of a coinbase transaction, such as computing the
normalized transaction id of all transactions on the blockchain.

Coinbase transactions have "null" inputs, which means the input has 0
for the txid and max int for the output number. The bitcore input
.script property returns javascript null in that case, however the input
setScript property expects a script. A simple way to resolve this is to
allow the setScript method to accept a null value and to interpret that
as an empty script.
Pull Request #13: fix sighash of coinbase transaction

2286 of 2448 branches covered (93.38%)

Branch coverage included in aggregate %.

5185 of 5338 relevant lines covered (97.13%)

1370.82 hits per line

Source Files on job 18.1
  • Tree
  • List 47
  • Changed 15
  • Source Changed 1
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 14
  • Travis Job 18.1
  • b8ac8970 on github
  • Prev Job for on fix-sighash-coinbase (#14.1)
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc