UdjinM6
27dd4ccf06
move only
2015-07-18 22:17:17 +03:00
UdjinM6
a3dfd86058
Code cleanups for masternode rpc
...
- drop boost/lexical_cast
- drop c_str() where applicable
- slightly prettify descriptions and some output
2015-07-18 21:20:22 +03:00
UdjinM6
aa96d701af
tabs to spaces
2015-07-18 20:40:19 +03:00
Evan Duffield
90f508c67e
Pay masternodes when no valid budget
2015-07-18 08:53:40 -07:00
Evan Duffield
956d85c59b
Change variable naming for rpc commands
...
- Added MonthlyPayment and TotalPayment
2015-07-18 08:48:44 -07:00
zathras-crypto
0aad1f13b2
Exempt unspendable transaction outputs from dust checks
...
Since unspendable outputs can't be spent, there is no threshold at which it would be uneconomic to spend them.
This primarily targets transaction outputs with `OP_RETURN`.
---
Initially based on:
commit 9cf0ae26350033d43d5dd3c95054c0d1b1641eda
Author: zathras-crypto <zathrasc@gmail.com>
Date: Wed Mar 25 02:04:02 2015 -0700
Changes:
- cherry-picked on top of bitcoin:master
- added RPC test for fundrawtransaction
2015-07-18 17:31:55 +02:00
Evan Duffield
637805b2de
Require 7 confirmations for finalized budget
2015-07-18 07:49:39 -07:00
Evan Duffield
853863ae86
Only check budget block payees after sync is complete
2015-07-18 06:46:54 -07:00
Simon Males
0c895799c8
Include pruned state in chaininfo.json
2015-07-18 10:32:09 +02:00
Wladimir J. van der Laan
ec249d4a1d
util: use locale-independent parsing in ParseDouble
...
Use locale-indepent C++ based parsing instead of C's strtod,
which checks for different input based on the user's locale.
Fixes #6443 .
2015-07-18 09:04:18 +02:00
Wladimir J. van der Laan
7650449a67
univalue: Avoid unnecessary roundtrip through double for numbers
...
JSON makes no distinction between numbers and reals, and our code
doesn't need to do so either.
This removes VREAL, as well as its specific post-processing in
`UniValue::write`. Non-monetary amounts do not need to be forcibly
formatted with 8 decimals, so the extra roundtrip was unnecessary
(and potentially loses precision).
2015-07-18 09:04:18 +02:00
Wladimir J. van der Laan
e061e2778d
rpc: Make ValueFromAmount always return 8 decimals
...
This is the format that was always returned to JSON clients.
The difference was not noticed before, because VREAL values
are post-processed by univalue.
By implementing the functionality directly it breaks the dependency
of rpcserver on utilmoneystr. FormatMoney is now only used for debugging
purposes.
To test, port over the formatting tests from util_tests.cpp to
rpc_tests.cpp.
2015-07-18 09:03:59 +02:00
Evan Duffield
f9e2b18e57
version bump
2015-07-17 21:38:56 -07:00
Evan Duffield
916deaa398
Small syncing improvement
2015-07-17 21:38:15 -07:00
evan82
494afeef50
Merge pull request #439 from UdjinM6/v0.12.0.x_revert_lower_fee
...
V0.12.0.x revert attempts to lower fee
2015-07-17 20:15:04 -07:00
evan82
45cd565f6c
Merge pull request #438 from UdjinM6/v0.12.0.x_register_MN
...
V0.12.0.x more checks on MN register (start-many/alias)
2015-07-17 20:14:49 -07:00
UdjinM6
990e32f3c0
revert all changes regarding attempts to lower fee
2015-07-18 03:35:59 +03:00
UdjinM6
bf1ec73357
more checks on MN register
2015-07-18 03:10:47 +03:00
Evan Duffield
59024b1b46
Resync on sleep/wake or failure
2015-07-17 16:49:41 -07:00
Wladimir J. van der Laan
dcc495e011
Merge pull request #6372
...
e3c4297
Update Linearize tool to support Windows paths (Paul Georgiou)
2015-07-17 22:02:45 +02:00
evan82
d9f3102313
Merge pull request #435 from UdjinM6/v0.12.0.x_ref_rpc_budget
...
V0.12.0.x few rpc budget fixes
2015-07-17 11:10:39 -07:00
evan82
a8e79ecd16
Merge pull request #434 from UdjinM6/v0.12.0.x_fix_fees
...
V0.12.0.x Fix fees
2015-07-17 11:09:24 -07:00
evan82
8ec3b473c1
Merge pull request #432 from UdjinM6/v0.12.0.x_ref_mn_statuses
...
V0.12.0.x Slightly refactor masternode statuses
2015-07-17 11:09:00 -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
33ee068d6a
Slightly refactor masternode statuses:
...
- better names (MASTERNODE_INITIAL was defined twice before that)
- move to proper header
2015-07-17 20:01:54 +03:00
UdjinM6
1282f676e5
Fixes for budget rpc
...
- readability
- drop c_str()
- drop boost/lexical_cast
- ValueFromAmount for money
- fValid as bool
- fix/simplify descriptions
- more info on vote-many
- feedback on mnbudget vote
2015-07-17 19:28:25 +03:00
UdjinM6
31e703dfcd
Fix fees
...
ref https://dashtalk.org/threads/v12-testing-thread.5484/page-62#post-59368
2015-07-17 18:33:15 +03: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
d60f3f6984
Added more information to getvotes
2015-07-17 07:38:35 -07:00
evan82
6d966891dc
Merge pull request #431 from UdjinM6/v0.12.0.x_few_sync_improvements
...
V0.12.0.x few sync improvments
2015-07-17 06:47:46 -07:00
UdjinM6
91eda7e21c
Few sync improvements:
...
- do not call Added....() inside CMasternodeSync::Process() - that was "faking" sync process
- unify "RequestedMasternodeAttempt <= ..." logic and define MASTERNODE_SYNC_TIMEOUT
- add missing masternodeSync.AddedMasternodeList() to CMasternodeMan::ProcessMessage()
- fix "include"s
- don't check vecMasternodesUsed while not synced
2015-07-17 13:08:15 +03:00
฿tcDrak
255eced936
Updated URL location of netinstall for Debian
...
Conflicts:
doc/gitian-building.md
Github-Pull: #6439
Rebased-From: 09d4ddf1c5
2015-07-17 09:27:48 +02:00
Cory Fields
7e66e9c97b
openssl: avoid config file load/race
...
Rebased-From: d4b1d5a8ba
Github-Pull: #6438
2015-07-17 09:16:57 +02:00
Wladimir J. van der Laan
fe3fe547f7
Merge pull request #6439
...
09d4ddf
Updated URL location of netinstall for Debian (฿tcDrak)
2015-07-17 09:01:11 +02:00
Wladimir J. van der Laan
7ed3d93294
Merge pull request #6442
...
6d6cec3
Create centaur1-key.pgp (centaur1)
2015-07-17 08:55:28 +02:00
Wladimir J. van der Laan
059b3525c4
Merge pull request #6434
...
83b48c8
configure --enable-debug changes (Gavin Andresen)
2015-07-17 08:42:19 +02:00
Wladimir J. van der Laan
b01981e758
Merge pull request #6430
...
3361edd
doc: Add NBitcoin to bitcoinconsensus examples (Braydon Fuller)
b1bac4e
Add description for bitcoinconsensus_ERR_OK (Braydon Fuller)
c156ada
doc: add documentation for shared library libbitcoinconsensus (Braydon Fuller)
2015-07-17 08:38:42 +02: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
ac488262c2
version bump
2015-07-16 12:13:42 -07:00
Evan Duffield
e5f37b8c98
New Spork : Reconsider X Blocks
...
- This allows us to fix forks remotely without anyone having to reindex. It remains trustless, because all nodes will simply find the longest chain.
2015-07-16 11:06:45 -07:00
Evan Duffield
017217f423
Added IsTransactionValid for finalized budgets
2015-07-16 10:47:51 -07:00
Evan Duffield
fc54241441
Default txindex to true
2015-07-16 07:34:40 -07:00
Evan Duffield
3c8b335594
Force txindex when a Mastenode
2015-07-16 03:00:16 -07:00
Philip Kaufmann
dca6040a86
[Qt] remove std namespace polution from code
2015-07-16 11:54:28 +02:00
Evan Duffield
e65a1edce3
version / proto bump
2015-07-16 02:43:53 -07:00
Pavel Vasin
2cb8ee9ac7
remove unused inv from ConnectTip()
2015-07-16 12:31:36 +03: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