• Evan Duffield's avatar
    Proposal Security Overhaul · 820b9d78
    Evan Duffield authored
    Submissions to the network now require a fee to be paid to the network (mining fee) using a special transaction with a OP_RETURN && ProposalHash in one of the outputs. This allows the network to filter spam quickly, while also allowing anyone to submit a proposal to the network.
    
    To implement these changes we've introduced a few new commands:
    
    mnbudget prepare PROPOSAL-NAME URL PAYMENT_COUNT BLOCK_START DASH_ADDRESS DASH_AMOUNT YES|NO|ABSTAIN [USE_IX(TRUE|FALSE)]
    - To create the special transaction
    
    mnbudget submit PROPOSAL-NAME URL PAYMENT_COUNT BLOCK_START DASH_ADDRESS DASH_AMOUNT YES|NO|ABSTAIN FEE_TX
    - After the transaction is accepted by the network and has 3 confirmations, you can submit the transaction to the network here
    
    mnbudget show
    - Get the proposal hash from here
    
    mnbudget vote PROPOSAL-HASH YES|NO|ABSTAIN
    - You can now simply vote by hash using this command
    820b9d78
main.cpp 217 KB