Evan Duffield
f82b34f3f2
better sorting algorithm
...
-- sort props by votes then nFeeHashTX
2015-07-26 05:26:15 -07:00
Evan Duffield
2b3edff435
Only relay good budget items
2015-07-25 21:23:38 -07:00
Evan Duffield
04fc6e1fb4
Change rest of sync process to direct inv messages / reduced sync timeout
2015-07-25 20:17:53 -07:00
Evan Duffield
c0a5dfba61
Masternode inv messages / save seen in mncache
2015-07-25 12:07:30 -07:00
Evan Duffield
0b9d761a38
only take newest votes
2015-07-25 09:59:59 -07:00
Evan Duffield
8187228be1
Fixed budget syncing issues / forking issues / syncing issues
...
- Budgets now store the seen objects locally so they're not overwritten when saving/loading to check validity of budget.dat
- Added safer sync "failure" mode, that will retry an hour later if the sync fails for some reason. This will stop the client from thinking it has budget data and rejecting blocks when they're valid.
- protocol bump
- version bump
2015-07-25 09:29:29 -07:00
UdjinM6
491c46c412
remove sync forcing and count already seen as a success instead
2015-07-24 21:35:11 +03:00
Evan Duffield
9fb56d9479
Various improvements
...
- Use INV messages where possible in syncing process
- Ask 4 peers intend of 2 to send of inventory of mnw, and budgets
- Special regtest sync mode
- Fix mnw freezing issue (maybe)
2015-07-23 14:35:14 -07:00
Evan Duffield
fa6216f115
Check for existing budget hash before submitting
2015-07-23 11:48:19 -07:00
Evan Duffield
f727b2dbd7
Fixed RemainingPayments display bug
...
- When proposal hasn't started yet, remaining payment is calculated incorrectly.
2015-07-23 07:36:41 -07:00
Evan Duffield
35cc21edf3
New masternodes must wait till end of queue
2015-07-23 07:16:55 -07:00
Evan Duffield
cd862ac1ea
Disable multisig proposals / IsScheduled read ahead 8 blocks
2015-07-23 06:46:38 -07:00
Evan Duffield
18a908065f
Fixed mnbudget suggestion
2015-07-22 18:53:17 -07:00
Evan Duffield
b9d47a0c6f
Submit finalized budget 2 days before payment
2015-07-22 17:54:47 -07:00
Evan Duffield
de485fe93d
Allow peers to ask for budget votes on testnet more than once
2015-07-21 07:05:35 -07:00
UdjinM6
dba572ac96
use specific protocols
2015-07-20 04:54:02 +03:00
Evan Duffield
7aa9676118
Only check vote sigs once / payee cache update on newblock
2015-07-18 12:24:06 -07:00
Evan Duffield
90f508c67e
Pay masternodes when no valid budget
2015-07-18 08:53:40 -07:00
Evan Duffield
637805b2de
Require 7 confirmations for finalized budget
2015-07-18 07:49:39 -07:00
Evan Duffield
916deaa398
Small syncing improvement
2015-07-17 21:38:15 -07:00
Evan Duffield
d5c4f3bea4
Only ask for missing masternodes/budget items after sync is complete
2015-07-17 11:03:49 -07:00
evan82
f9ada02a7d
Merge pull request #433 from UdjinM6/v0.12.0.x_ref_budget
...
V0.12.0.x Budget module refactor
2015-07-17 10:29:59 -07:00
UdjinM6
b84bf76324
Budget module refactor
...
- readability (names / spaces / simplify constructions / etc)
- proper types (int for block height, CAmount for money)
- prettify log output / drop c_str() there
- read budgets on dump before writing (safety)
- microoptimization (++it)
- sort proposals by Yeas
- sort finalized budgets by votes
- fix few small bugs
2015-07-17 18:07:07 +03:00
Evan Duffield
b6001065ae
Set fValid=true when receiving new votes
2015-07-17 07:40:26 -07:00
Evan Duffield
7101c951f8
Budget Improvements
...
- Client bump
- Improved syncing logic (sholud stop hanging issues)
- New spork for turning on super blocks
- Fixed issue with sending old/invalid finalized budgets
- Fixed issue with syncing clients and lack of confirmations with budget items (for IX)
2015-07-16 20:03:42 -07:00
Evan Duffield
017217f423
Added IsTransactionValid for finalized budgets
2015-07-16 10:47:51 -07:00
Evan Duffield
f139dbbc74
Fixed prepare -- shouldn't check collateral
2015-07-15 15:56:40 -07:00
Evan Duffield
ffed6dc948
Added CBudgetManager::ToString
2015-07-15 14:21:21 -07:00
Evan Duffield
21769085ec
Test feeTX in IsValid
2015-07-15 07:18:03 -07:00
Evan Duffield
6e0a468701
Highly improved syncing process
2015-07-14 19:48:02 -07:00
Evan Duffield
9e9e01b5f6
Fixed GetBudget
2015-07-14 16:06:00 -07:00
Evan Duffield
a4e3031db1
Refactored CleanAndRemove Proposals
2015-07-14 15:52:07 -07:00
Evan Duffield
50d1b827eb
Fixed proposal fee IX confirmations
2015-07-14 12:52:46 -07:00
UdjinM6
59271beabd
Fix CBudgetProposalBroadcast::IsBudgetCollateralValid log output / strError
2015-07-14 11:32:49 +03:00
Evan Duffield
bee6941195
Fixed Propagation Of Budgets / Proto Bump
2015-07-13 20:03:08 -07:00
Evan Duffield
6fa0d23714
Commit collateral transaction correctly for finalized budget
2015-07-13 06:34:54 -07:00
Evan Duffield
acf09d1bc1
Collateral is now checked for age
2015-07-12 16:37:55 -07:00
Evan Duffield
304ab6c7ab
Various improvements to the proposal system
...
- Proposal scripts are now checked correctly
- Fee transactions are created correctly for IX and non-IX types
2015-07-12 14:02:39 -07:00
Evan Duffield
0b3ef3c9fe
Various fixes
...
- Proposal submitting now works properly
- Syncing proposals now works properly
- Finalized budgets are now created correctly
2015-07-12 10:34:21 -07:00
Evan Duffield
a59c5d9edd
fixed issues with rpc commands
2015-07-12 07:45:58 -07:00
Evan Duffield
c701839a43
Proposal Security Overhaul
...
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
2015-07-11 13:20:12 -07:00
Evan Duffield
a351456c17
Fixed invalid saved budget.dat issue
2015-07-08 10:17:16 -07:00
Evan Duffield
91a0887a0d
Fix active removal of proposals
2015-07-08 08:55:52 -07:00
evan82
246037abdb
Merge pull request #415 from UdjinM6/v0.12.0.x_budgets_var_naming_logging
...
V0.12.0.x use proper naming for variables in masternode-budget
2015-07-08 07:35:20 -07:00
UdjinM6
2fdb5b01f7
use proper naming for variables in masternode-budget
2015-07-08 05:35:58 +03:00
UdjinM6
9cfdaffee5
introduce RelayInv
2015-07-08 04:31:10 +03:00
evan82
10ad24226c
Merge pull request #405 from UdjinM6/v0.12.0.x_prevent_ban_for_unknown_MN
...
V0.12.0.x Stop banning nodes for unknown masternodes while processing budget messages
2015-07-06 15:39:42 -07:00
Evan Duffield
5b98d9db05
fixed getinfo for 0-vote proposals
2015-07-06 15:06:09 -07:00
UdjinM6
e40de28900
Stop banning nodes for unknown masternodes while processing budget messages.
...
Also cleanup naming/logging a bit.
2015-07-07 00:00:00 +03:00
Evan Duffield
05e126f853
Clear expired proposals / added mnbudget check
2015-07-06 13:23:09 -07:00