Question about tests
- Dominant language
- Go
- Stars
- 24
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
I'm currently working on https://github.com/ipld/js-ipld-bitcoin. I use go-ipld-btc as a reference and hence port the tests. My knowledge about Bitcoin is really limited, so I've a few questions.
The testdata of [TestBip143TxsNativeP2WPKH](https://github.com/ipfs/go-ipld-btc/blob/dcfb146c153886c49e69b21f445175a55cb261de/btc_test.go#L121-L175) doesn't decode for me. I tried 2 different JS implementations, both error with an out of bounds error (one at offset=245) when they decode the transactions. Is there anything special about it?
In test [TestBip143TxsNativeP2WSH](https://github.com/ipfs/go-ipld-btc/blob/dcfb146c153886c49e69b21f445175a55cb261de/btc_test.go#L177-L248) the JS libs don't return any transactions. Any idea why?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked btc_test.go sections for TestBip143TxsNativeP2WPKH and TestBip143TxsNativeP2WSH, then compare their test data with the JavaScript decoding behavior described here. Done means determining why the first data fails to decode and why the second returns no transactions, and documenting the expected result or required correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, javascript
- Domain
- blockchain, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100