-
Notifications
You must be signed in to change notification settings - Fork 381
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
fix: assert failure on non-policy asset consolidation in CreateTransactionInternal #1277
Conversation
…ctionInternal Squash of 2 commits from ElementsProject#1258 - correct application of non_policy_effective_value to policy output in KnapsackSolver - replace bad fee amount assert with error log and graceful failure in CWallet::CreateTransactionInternal (cherry picked from commit 0f92a38) Update src/wallet/coinselection.cpp Co-authored-by: Byron Hambly <[email protected]> (cherry picked from commit cf0f561)
@delta1 there's a test failure in
|
Pushed the fix to the functional test for the
|
ACK 441c751. Pushed a commit on top of it which fixes the coin selection bug that was causing the rest of the test to fail. |
Adds a functional test to cover the issue uncovered in ElementsProject#1259, where calling fundrawtransaction with many non-policy inputs and no policy recipients results in an assertion failure and a crash. Fixed in ElementsProject#1258. (cherry picked from commit a8b0ed6)
Thanks @jamesdorfman, testing now after fixing a bug I introduced in the test. |
Pushed to fix lint issues |
a815cef
to
04cba29
Compare
ACK 04cba29 |
d8cc516
to
ab8ad42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 406ce9a
ran unit and functional tests successfully
"-blindedaddresses=1", | ||
"-initialfreecoins=2100000000000000", | ||
"-con_blocksubsidy=0", | ||
"-con_connect_genesis_outputs=1", | ||
"-txindex=1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these args should match the conf files from the tutorial. can be done as part of #1278
'8f1560e209f6bcac318569a935a0b2513c54f326ee4820ccd5b8c1b1b4632373': 0, | ||
'4fa41f2929d4bf6975a55967d9da5b650b6b9bfddeae4d7b54b04394be328f7f': 99 | ||
} | ||
assert self.nodes[0].gettransaction(reissuance_txid)['amount'] == expected_amt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could use some asserts of the balances before and after this whole process. not a showstopper though.
406ce9a
to
ab54314
Compare
ab54314
to
e02024e
Compare
same diff as #1258 but for
master
branch