-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #655: [RPC]Add assetlabel support to some commands
7b0b52f [RPC]Add assetlabel support to some commands (Akio Nakamura) Pull request description: The support of assetlabel parameter that was previously present left behind from elements-0.17 when #515 have been merged. I think it is still useful for these commands to support assetlabels. This patch add assetlabel support to following RPC: 1. getreceivedbyaddress Add the 3rd parameter as "assetlabel" Print 'optional' explicitly in the help text.↲ 2. getreceivedbylabel Add the 3rd parameter as "assetlabel" Print 'optional' explicitly in the help text.↲ 3. gettransaction Add the 3rd parameter as "assetlabel" 4. getbalance Set the name of 4th parameter as "assetlabel". Print 'optional' explicitly in the help text.↲ 5. listreceivedbyaddress Set the name of 5th parameter as "assetlabel". Enable assetlabel selection to the result of amounts. Print 'optional' explicitly in the help text.↲ 6. sendtoaddress Print 'optional' explicitly in the help text.↲ ... and add some tests for assetlabel support. notice) Also ```getwalletinfo``` had a parameter to specify "assetlabel". But no need to add a parameter because the command is a catch-all one. Tree-SHA512: ba8633e87e21ea3ae5f16f30eb3767e79d7b52cf0ada73257f71416ece2eeca91566e6d33d00bcb8efeac6012def8d3c86bb39deb0fc6a54b24758b8d469e1ef
- Loading branch information
Showing
3 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters