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

Only 1 transfer to alice (expected two): transfer_to_blind xxx CORE [[alice,1000],[alice,2000]] #523

Closed
jcalfee opened this issue Jan 19, 2016 · 1 comment
Assignees
Milestone

Comments

@jcalfee
Copy link

jcalfee commented Jan 19, 2016

https://github.com/cryptonomex/graphene/wiki/StealthTransfers#transferring-to-a-stealth-balance

The Docs show that Alice can receive two blinded transfers in one command:

>>> transfer_to_blind alicepub BTS [[alice,1000],[alice,2000]] true
alicepub sent 3000 BTS to 2 blinded balances fee: 15 BTS
1000 BTS to  alice
  receipt: 2Dif6AK...

2000 BTS to  alice
  receipt: 28HrgG...

However, in develop only the 1st one is sent according to the output:

transfer_to_blind nathan CORE [[alice,1000],[alice,2000]] true
2044465ms th_a       wallet.cpp:743                save_wallet_file     ] saving wallet to file wallet.json
nathan sent 1000 CORE to 1 blinded balance fee: 10 CORE
1000 CORE to  alice
      receipt: 2SDVv...

This command works as expected, sending the balance to two labeled keys:
transfer_to_blind nathan CORE [[alice,1000],[bob,2000]] true
#452

@bytemaster
Copy link
Contributor

This is probably caused by the API using map<string,string> in the to_amounts which causes the JSON to be parsed and discard the duplicate entry.

@theoreticalbts theoreticalbts added this to the next2 milestone Feb 9, 2016
theoreticalbts pushed a commit that referenced this issue Feb 9, 2016
theoreticalbts added a commit that referenced this issue Feb 9, 2016
Merged:

492-bugfix-open-fail #492
523-bugfix-multiple-blind-xfer #523
537-cleanup-remove-operation_get_required_authorities #537
540-cleanup-settle-volume-spam #540
542-bugfix-cancel-fee #542
557-bugfix-pts-address #557
559-test-fix-zero-block-wait #559
561-bugfix-serializer-build-broken #561
562-bugfix-unreflected-fields #562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants