Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New test cases for SLP txDetails() and validateTxid() #512

Open
christroutner opened this issue Oct 17, 2019 · 0 comments
Open

New test cases for SLP txDetails() and validateTxid() #512

christroutner opened this issue Oct 17, 2019 · 0 comments
Labels
enhancement New feature or request
Projects

Comments

@christroutner
Copy link

A Schnorr-signature-based transaction is producing errors in the latest version of the stage branch in rest. This issue captures the error codes and URLs being tested on stage. The scope of work to solve this issue includes updates to these two endpoints to handle this use case, and to add unit tests that capture this use case.

TXID: d7183ddef6acea521c526c30b97101d36a9e96a2e411e2721b22033ba07b72e1

validateTxid()

https://rest.btctest.net/v2/slp/validateTxid/d7183ddef6acea521c526c30b97101d36a9e96a2e411e2721b22033ba07b72e1

Produces this error:

{
  "error": "TypeError: Cannot read property 'valid' of undefined\n    at /var/www/rest.bitcoin.com/dist/routes/v2/slp.js:1334:55\n    at step (/var/www/rest.bitcoin.com/dist/routes/v2/slp.js:43:23)\n    at Object.next (/var/www/rest.bitcoin.com/dist/routes/v2/slp.js:24:53)\n    at fulfilled (/var/www/rest.bitcoin.com/dist/routes/v2/slp.js:15:58)\n    at process._tickCallback (internal/process/next_tick.js:68:7)"
}

txDetails()

https://rest.btctest.net/v2/slp/txDetails/https://rest.btctest.net/v2/slp/validateTxid/d7183ddef6acea521c526c30b97101d36a9e96a2e411e2721b22033ba07b72e1

Produces this error:

{
  "status": 404,
  "message": "Not Found"
}
@christroutner christroutner added the enhancement New feature or request label Nov 15, 2019
@christroutner christroutner added this to In progress in Rest v2 Nov 15, 2019
@christroutner christroutner moved this from In progress to Backlog in Rest v2 Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Rest v2
  
Backlog
Development

No branches or pull requests

1 participant