Evan Duffield
38cd9bd679
Improve portability of mn ranking algos
2015-07-24 09:44:46 -07:00
Evan Duffield
5281c48f70
Fix syncing issues
...
- if(pindexPrev->nHeight + 4 < pindexBestHeader->nHeight || pindexPrev->nTime + 600 < GetTime()) return;
-- && allowed skipping in various situations, which caused blocks to be rejected because of lack of mnfinalbudget data
2015-07-24 09:10:08 -07:00
Evan Duffield
9e65749ff6
Safer calcscore implementation
2015-07-24 08:50:10 -07:00
Evan Duffield
c137a204fb
Added calcscore cmd
2015-07-24 08:21:02 -07:00
Evan Duffield
85e1280bc3
limit mnw votes-per-mn
2015-07-24 07:12:48 -07:00
Evan Duffield
48f9e277f9
changed min ver back to 70066
2015-07-23 18:55:39 -07:00
evan82
12d4519015
Merge pull request #452 from UdjinM6/v0.12.0.x_fix_resync
...
V0.12.0.x fix resync & do not sync mn while IBD
2015-07-23 15:54:13 -07:00
UdjinM6
f8f4bff9a1
do not sync while IBD
2015-07-24 01:35:59 +03:00
UdjinM6
f0ccd2b8cb
fix resync
2015-07-24 01:35:11 +03:00
Evan Duffield
814f8e3f17
delete comment
2015-07-23 15:05:47 -07:00
Evan Duffield
ac947444da
protocol bump
2015-07-23 15:02:15 -07: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
9aca541200
inc min peer version to 70094 for testing
2015-07-23 11:36:07 -07:00
Evan Duffield
5c935c8c86
version bump
2015-07-23 11:16:49 -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
evan82
5cccd2b269
Merge pull request #447 from crowning-/UI_Enhancements
...
UI: fixed width of wallet-repair-buttons for longer locales
2015-07-23 06:31:09 -07:00
evan82
516c5fff0f
Merge pull request #450 from UdjinM6/v0.12.0.x_active_mn
...
V0.12.0.x active masternode fixes
2015-07-23 06:30:46 -07:00
evan82
9e879d5e8d
Merge pull request #451 from UdjinM6/v0.12.0.x_fix_rpc
...
V0.12.0.x small fixes for rpc
2015-07-23 06:29:33 -07:00
UdjinM6
ae48f0984e
small fixes for rpc
2015-07-23 05:32:13 +03:00
UdjinM6
6123770bf8
active masternode fixes
2015-07-23 05:19:37 +03: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
c2a23c5beb
Fix sync-spork logic
2015-07-22 16:51:51 -07:00
Evan Duffield
dec45ac67a
Fixed bug with remotely enabled masternodes and wrong protocol version
2015-07-21 20:54:58 -07:00
Evan Duffield
388f22c576
Version 26 / New masternode consensus system
...
- Consensus system selects 1/10 of the oldest masternodes by payment, then selects payee by score from those. This fixes various race conditions when blocks are close together or inconsistant historical winner lists.
- Ask for up to 2 cycles of history
- Keep up to 5 cycles of history locally
2015-07-21 20:07:23 -07:00
Evan Duffield
cbe2bae130
Improved lastpaid and fixed votes calculation
2015-07-21 16:57:21 -07:00
Evan Duffield
b2c4e14ee8
Add offset for lastpaid / seperate min mnw peer version
2015-07-21 16:11:49 -07:00
Evan Duffield
18fc14e03c
Improved mnw sync
2015-07-21 15:14:54 -07:00
Evan Duffield
9e5cd419d0
Fixed compile error
2015-07-21 10:00:11 -07:00
Evan Duffield
3fae250190
Dont accept MNW from older masternodes
2015-07-21 08:09:17 -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
Evan Duffield
e4a0e8340c
Masternode payment cache and mnget changes
...
- Cache saves masternode payment history
- On startup, the client will find the most recent block and calculate the amount of entries to ask for. The other peer will then send that amount of entries to save bandwidth on restarts.
2015-07-20 19:24:43 -07:00
Evan Duffield
1eab82ae2b
Erase seen masternode broadcasts when masternode drops from list
2015-07-20 16:48:57 -07:00
crowning-
49afaa0557
Merge remote-tracking branch 'upstream/v0.12.0.x' into UI_Enhancements
2015-07-21 01:21:23 +02:00
Evan Duffield
6df7519e02
Merge branch 'v0.12.0.x' of https://github.com/dashpay/dash into v0.12.0.x
2015-07-20 15:14:18 -07:00
Evan Duffield
37f55a3181
Refactored masternode payments system
...
- Replaced coinbase cache in favor of using the masternode payments voting system only
- Syncing masternode payments now supports up to the syncing the entire payment list
2015-07-20 15:09:42 -07:00
evan82
7a992acb58
Merge pull request #448 from UdjinM6/v0.12.0.x_force_sync_progress
...
Force sync progress:
2015-07-20 12:52:55 -07:00
UdjinM6
8198291c7b
Force sync progress:
...
If it's already more then MASTERNODE_SYNC_TIMEOUT seconds passed since we asked
and we still have nothing, assume there is nothing to sync but give it another
MASTERNODE_SYNC_TIMEOUT seconds until we move further
2015-07-20 22:33:18 +03:00
Evan Duffield
d193cc2d91
Clean up broadcast list when nodes are removed
2015-07-20 12:20:15 -07:00
Evan Duffield
2d745eb539
Don't sync sporks in regtest, fix segfault
...
- segfault caused by:
- fRequireEnabled = (fRequireEnabled && pmn->IsEnabled()) || !fRequireEnabled;
- if(pmn != NULL && fRequireEnabled && pmn->protocolVersion >= masternodePayments.GetMinMasternodePaymentsProto())
2015-07-20 11:56:02 -07:00
crowning-
52b930329d
UI: fixed width of wallet-repair-buttons for longer locales
2015-07-20 20:52:49 +02:00
Evan Duffield
f36e4251ab
mnb/mnp debugging
2015-07-20 11:43:10 -07:00
evan82
aa996b2615
Merge pull request #446 from UdjinM6/v0.12.0.x_fix_mnb_ping_acceptance
...
V0.12.0.x fix mnb ping acceptance
2015-07-20 11:21:15 -07:00
UdjinM6
cc26cff893
do not require active MN on ping check from UpdateFromNewBroadcast
2015-07-20 20:46:22 +03:00
evan82
a683078867
Merge pull request #445 from crowning-/UI_Enhancements
...
UI: allow "," in "Min amount" field of Transaction-View
2015-07-20 10:45:37 -07:00
Evan Duffield
77af4fb6ad
MNP ping changes
...
- Ping every 5 minutes
- Nodes will propagate pings every 10 minutes
2015-07-20 10:44:27 -07:00
crowning-
fb5f80a06a
UI: allow "," in "Min amount" field of Transaction-View
2015-07-20 18:28:49 +02:00