-
Notifications
You must be signed in to change notification settings - Fork 2k
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
z_mergetoaddress does not support concurrent execution #3046
Comments
Hi, when you say "without waiting" are you firing off the RPC calls from code eg. a Python client? Or do you mean on the command line? Thanks. |
Firstly, thanks for testing this experimental feature! 😄 I believe this is because there is no locking mechanism for notes yet. It doesn't affect The solution is to implement note locking and unlocking, which is #1377. See also #1277. |
Thanks for your response. After going over the z_sendmany implementations and its comments I figured that it will be related to the missing note locking. Looking forward to the note locking implementation as it will certainly make the call more usable and less error prone. |
I have reproduced this issue in an RPC test. |
@str4d Where's the RPC test that reproduces the issue? I'd like to take a look. Thx. |
@bitcartel it's the first commit in the note locking PR
…On Wed, 28 Mar 2018, 1:00 AM bitcartel, ***@***.***> wrote:
@str4d <https://github.com/str4d> Where's the RPC test that reproduces
the issue? I'd like to take a look. Thx.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3046 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEwzB1Qq4l5Pkf9Db4yyhlEw9PpqexASks5tisR1gaJpZM4Sb4Oc>
.
|
@bitcartel, as a followup to what @str4d said. The first commit in the PR has the original RPC tests, but they're slightly flawed. My understanding is that only one 0 fee transaction can be included in any single block. So the fee on one or both |
I wasn't aware of such a rule. Where is it implemented? |
In This manifested in the RPC tests as showing two transactions in the mempool corresponding to |
The conditional around |
Not sure it's true that this conditional will never evaluate to true, at least in the context of regtest. Doing manual debugging output to the console I believe I received a printout from inside that conditional, which is the only reason I noticed the 0 fee issue. |
This issue should be resolved by PR 3106 which has been incorporated into master. If this issue persists please reopen this ticket and provide additional details on the failure. |
Describe the issue
Assume having 100 unspent notes which should be merged into one t1 address. Each z_mergetoaddress, with the default settings, will merge 10 notes into one output. When starting the z_mergetoaddress call 10 times (without waiting before the previous async z_mergetoaddress call finishes) will cause the first call to succeed and all consecutive calls to fail with the "18: bad-txns-joinsplit-requirements-not-met" error.
Can you reliably reproduce the issue?
If so, please list the steps to reproduce below:
Expected behaviour
Similar to z_sendmany, z_mergetoaddress should support firing off multiple calls at once.
The version of Zcash you were using:
1.0.15
The text was updated successfully, but these errors were encountered: