-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: votegov: Add support for owner and operator address (#1717)
* feat: add possibility to vote with owner/operator address instead of maternode id * Add test case for votegov when address does not own or operate a masternode * add test case for votegov where address is not in the proper format * Make a proper check for address passed in votegov rpc * fix logic for votegov * fix logic for votegov rpc * fix thrown error for rpc_proposal votegov * fix throw error if voting address is not P2PKH or P2WPKH * remove duplicate line in votegov * Update src/masternodes/rpc_proposals.cpp Co-authored-by: Shoham Chakraborty <[email protected]> * replace ternary operation by if for better readability --------- Co-authored-by: Shoham Chakraborty <[email protected]> Co-authored-by: Peter John Bushnell <[email protected]>
- Loading branch information
1 parent
aa9549b
commit 3e92abf
Showing
2 changed files
with
110 additions
and
7 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