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

bitpay / bitcore-lib-cash / 18

DEFAULT BRANCH: master
Build:
LAST BUILD BRANCH: bug/estimateFee
Ran 22 Aug 2018 09:58AM PDT
Jobs 1
Files 47
Run time 47s
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

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 %.

4 of 4 new or added lines in 1 file covered. (100.0%)

5185 of 5338 relevant lines covered (97.13%)

1370.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18.1 22 Aug 2018 09:58AM PDT 47
95.95
Travis Job 18.1
Source Files on build 18
  • 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 Repo
  • Travis Build #18
  • Pull Request #13
  • PR Base - master (#11)
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