@bot preview-e.cash
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
All Stories
Sep 21 2023
simplify the code by removing a debbuging log, fix the comment
rebase onto D14521
lint and reuse self.outpoint_bytes in test
investigating a bug, not sure if related
I'm not sure it needs to live in chronik-client. Delivering a mock as part of a library is mostly consuming storage for no added value from the lib users point of view. Also chronik-client doesn't need the mock.
In D14517#326035, @bytesofman wrote:ninja all check-all
Is this run by teamcity?
In D14515#326029, @bytesofman wrote:potential nit: https is set to False by default in the init, but the way the if/else connection and websocket url definition gates are ordered it would seem https is the expected condition.
ninja all check-all
potential nit: https is set to False by default in the init, but the way the if/else connection and websocket url definition gates are ordered it would seem https is the expected condition.
To create and implement an ecash-specific coinselect lib
remove another indentation by appending "already complete" inputs first
need_dl_txids[prevout_hash].append((i, n)) also needs duplicating. Add comments.
remove more indentation (this requires some duplication of inps.append(inp))
I looked closely at the coinselect library, and I'm not sold to this solution:
- It obviously expects some format that is close but not similar to chronik utxos, adding some boilerplate to convert between the formats
- It doesn't support txs with more than 253 in/outs
- It doesn't manage the dust in an eCash compatible way
- As a consequence you can end up with a change output which is below the dust threshold, which is not handled by your code and would cause your tx to get rejected
Sep 20 2023
Update snapshot
Add error case unit test for signInputs
need some test cases for tx signing errors
Better code comments and variable names
Move generated mocks to a marked file
Move generated items out of fixtures file
add p2sh destination address test vector
rebase
add test vector for sending to p2sh
Better comments
fix typo (i'm pretty sure I fixed this before, but maybe it got lost in an aborted rebase)
Rerun all the interactive tests to be sure.
Add simplified signing function, add new test vectore, remove debug logging
i think there was a rebase incident
rebase after doing the prev_tx change in another diff
fix the test name (the scope is larger than hardware wallets), no need to pop "value" if not specified
don't add "value" when the input is complete, don't assert value is not None for incomplete TxInput (it can be constructed like this initially and the value can be added later by the wallet), add a test for the different behavior between complete transactions and incomplete transactions