Add opreturn support to new sendxec function. Note: this function is still not implemented in the user-facing GUI of the app.
Details
- Reviewers
PiRK - Group Reviewers
Restricted Project - Commits
- rABCe33666e462ce: [Cashtab] Do not give a change address to opreturn outputs
npm test
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- support-opreturn-sendxec-new
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 25896 Build 51367: Build Diff cashtab-tests Build 51366: arc lint + arc unit
Event Timeline
In the summary, you probably meant to say "still not used".
Does the position of the OP_RETURN in the outputs matter (is this going to be used for SLP txs)? I see in the new test that it is put in second position.
Does the position of the OP_RETURN in the outputs matter (is this going to be used for SLP txs)? I see in the new test that it is put in second position.
The function takes targetOutputs as a param, so the order depends on how it is called by the user. In the unit test, the order is arbitrary. I've added another test with OP_RETURN at index 0.
The function will probably be used for SLP txs going forward. When this happens, it may require further modification and additional unit tests -- probably, though, there will just need to be some sort of helper function that correctly forms the targetOutputs param before calling this function.
sendXec will initially be implemented only in Send.js, i.e. only to send XEC txs from one-to-one or one-to-many, with or without a Cashtab msg OP_RETURN output.