neobytes/src
Tim Flynn de7b2b6c51 Merge #944: V0.12.1.x governance pr - part 1 - base functionality
068c178 Added DBG macro in util.h to facilitate debugging

    - This macro allows debugging statements (typically printf's or cout's) to
      be activated or deactivated with a single comment.  Uncomment the line:
      //#define ENABLE_DASH_DEBUG
      in util.h to enable debugging statements.

    - When commented any code wrapped with the DBG() macro will simply be removed
      by the preprocessor.  When not commented all such wrapped statements will
      be present.

    - For maximum effectiveness it is best that util.h be the first effective include
      in all source files.  It is also possible to enable the macro for a single file
      by temporarily adding #define ENABLE_DASH_DEBUG to the top of the file.

    - Code committed to non-development branches should always have the define
      commented.

d125d9b V0.12.1.x -- merging trigger/generic object/superblock changes for testnet phase II

    - This commit contains the core governance system changes for 0.12.1.  Any unrelated
      changes have either been removed or moved to separate commits.

120724c File mode fixes

    - Changed mode 0755->0644 on several source files.

c7f9e11 Updated todo reminders

    - Added reminder to revert temporary reduction of number of votes
      required to trigger superblock to 1 for testing

92adc98 Made CSuperblockManager::IsValidSuperblockHeight an inline function

    - This is for efficiency since this function is called often and is
      only 1 line of code.

c050ed7 Added comment explaining rationale for no LOCK(cs) in CSuperblock::IsValid

dc933fe Removed unused CSuperblockManager::IsBlockValid function

decec88 Moved calls to SuperblockManager::IsValidSuperblockHeight into IsSuperblockTriggered.

    - Since calls to the later function are always protected by the former there's
      no reason to keep these separate and this simplifies the code in
      masternode-payments.cpp.

8672885 Reestablished expected value check for non-superblocks in IsBlockValueValid

b01cbe0 Changes to IsBlockValueValid to fix rpc test failure

a937c76 Changed include order to allow per file activation of the DBG macro

d116aa5 Fixed IsValidSuperblockHeight logic

    - Note this has an effect on testing because we can now only create
      1 superblock per day.  Devs may need to temporarily change testnet params
      for easier testing.

2d0c2de Convert superblock payments to CAmount

    - We assume that payment values in JSON are in units of DASH
      for consistency with other RPC functions, such as
      createrawtransaction.

376b833 Revert temporary testing value for nAbsVoteReq

    - Also ensure that number of votes required is never smaller than 1

8c89f4b Cleaned up CSuperblock error handling

    - Exceptions are now thrown consistently rather than using a mix of
      exceptions and return code checking.  Exceptions are now caught only
      in AddNewTrigger when the CSuperblock constructor is called.  Unnecessary object
      status members have been removed.

d7c8a6b Removed utilstrencodings header

    - This appears to help with travis tests, for unknown reasons.

c4dfc7a Fixed some minor code review issues

63c3580 Reverted locking change in miner.

    - This should have been done in the original PR but was overlooked.

4ab72de Fixed variable name to match common practice and bracket formatting

886a678 Improvements to vote conversion code

    - Replaced redundantly defined function with inclusion of governance-vote.h

    - Replaced magic numbers with their corresponding constant symbols

0a37966 Reordered governance message handling
2016-08-17 09:08:25 +02:00
..
bench more bitcoin->dash 2016-03-04 12:09:03 +03:00
compat fixed endian issues 2016-05-09 08:58:17 -07:00
config
consensus Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
crypto Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
drafted Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
leveldb Update LevelDB 2015-11-04 23:46:47 +01:00
obj
obj-test
policy Merge #942: Leave some space for free transactions by defaut (10000) 2016-08-12 08:01:14 +02:00
primitives Tag 0.12.1 final 2016-07-04 11:20:16 +02:00
qt Merge #930: [UI] IPv4, IPv6 and TOR stats added to Information tab 2016-08-06 22:52:01 +02:00
script Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
secp256k1 Cleanup 2016-02-15 00:01:44 +03:00
support Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
test Merge pull request #914 from UdjinM6/dashBitcore1 2016-08-08 12:53:34 -07:00
univalue univalue: Handle UTF-8 2016-05-31 04:31:02 +03:00
wallet Merge #928: Refactor All The Things - part1 2016-08-05 21:49:45 +02:00
zmq Merge #903: Implement transaction lock zmq notifications 2016-07-15 08:38:33 +02:00
.clang-format [trivial] clang-format: Set AlignAfterOpenBracket: false 2015-11-05 23:28:02 +01:00
activemasternode.cpp Merge #928: Refactor All The Things - part1 2016-08-05 21:49:45 +02:00
activemasternode.h Merge #928: Refactor All The Things - part1 2016-08-05 21:49:45 +02:00
addressindex.h mempool: same address and index for an input and output bug 2016-06-13 11:23:30 -04:00
addrman.cpp
addrman.h PARTIAL: typofixes (found by misspell_fixer) 2016-01-16 17:04:08 +01:00
alert.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
alert.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
amount.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
amount.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
arith_uint256.cpp
arith_uint256.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
base58.cpp rpc: fix issue for querying txids for p2sh addresses 2016-06-02 12:15:13 -04:00
base58.h Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
bloom.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
bloom.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
chain.cpp Allow block announcements with headers 2015-11-29 11:59:23 +01:00
chain.h Merge #915: Store block hash in CDiskBlockIndex 2016-07-29 07:27:47 +02:00
chainparams.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
chainparams.h Merge #922: Refactor/fix spork 2016-07-30 13:04:27 +02:00
chainparamsbase.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
chainparamsbase.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
chainparamsseeds.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
checkpoints.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
checkpoints.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
checkqueue.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
clientversion.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
clientversion.h Tag 0.12.1 final 2016-07-04 11:20:16 +02:00
coincontrol.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
coins.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
coins.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
compat.h Cleanup 2016-02-15 00:01:44 +03:00
compressor.cpp
compressor.h
core_io.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
core_memusage.h Prevector type 2015-11-13 18:15:20 +01:00
core_read.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
core_write.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
darksend-relay.cpp Merge #928: Refactor All The Things - part1 2016-08-05 21:49:45 +02:00
darksend-relay.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
darksend.cpp Merge #937: Fix/improve upon previous DS refactoring 2016-08-12 07:43:18 +02:00
darksend.h Merge #937: Fix/improve upon previous DS refactoring 2016-08-12 07:43:18 +02:00
dash-cli-res.rc Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
dash-cli.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
dash-tx-res.rc Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
dash-tx.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
dashd-res.rc Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
dashd.cpp Merge #921: Fix project name Dash -> Dash Core 2016-07-29 07:30:19 +02:00
dbwrapper.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
dbwrapper.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
dsnotificationinterface.cpp cleanup 2016-04-14 19:54:11 -07:00
dsnotificationinterface.h Introduce CDSNotificationInterface - validation interface to listen to tip updates and trigger updates in DS, payments and budgets. Should significantly reduce number of references to chainActive.Tip() i.e.we should have less cs_main in dash-darksend thread and potential deadlocks. 2016-03-04 12:10:37 +03:00
flat-database.h Merge #864: govobj sync 2016-06-08 08:57:16 +02:00
governance-classes.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
governance-classes.h Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
governance-misc.h Budget system -> Governance System 2016-05-23 10:53:05 -07:00
governance-vote.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
governance-vote.h Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
governance.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
governance.h Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
hash.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
hash.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
httprpc.cpp Few small changes: - Better log output (a bit more granular for mnb, fixing "\n"s and few other small issues) - Unify variable/class members naming a bit 2016-03-16 07:48:37 +01:00
httprpc.h
httpserver.cpp Merge #822: [Core]: fix restart hanging during wallet-repair 2016-06-05 07:10:41 +02:00
httpserver.h http: speed up shutdown 2015-11-13 11:10:48 +01:00
init.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
init.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
instantx.cpp Merge #939: More IS refactoring 2016-08-12 07:55:41 +02:00
instantx.h Merge #939: More IS refactoring 2016-08-12 07:55:41 +02:00
keepass.cpp Merge #935: Slightly refactor keepass module / replace magic number 2016-08-12 07:39:43 +02:00
keepass.h Merge #935: Slightly refactor keepass module / replace magic number 2016-08-12 07:39:43 +02:00
key.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
key.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
keystore.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
keystore.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
limitedmap.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
main.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
main.h Merge #940: Adjust block download timeouts to match Dash avg block time (bitcoin/4) 2016-08-12 07:57:20 +02:00
Makefile.am Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
Makefile.bench.include Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
Makefile.new.am added new files 2016-04-09 10:17:17 -07:00
Makefile.qt.include Merge #868: checkbox image for wallet themes 2016-06-06 21:52:09 +02:00
Makefile.qttest.include Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
Makefile.test.include Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
masternode-payments.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
masternode-payments.h Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
masternode-sync.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
masternode-sync.h Merge #864: govobj sync 2016-06-08 08:57:16 +02:00
masternode.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
masternode.h Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
masternodeconfig.cpp fix CMasternodeConfig::read() 2016-05-20 01:29:34 +03:00
masternodeconfig.h fixed vote casting 2016-05-19 14:08:57 -07:00
masternodeman.cpp Merge #941: Simplify CountByIP() 2016-08-12 07:58:55 +02:00
masternodeman.h Merge #941: Simplify CountByIP() 2016-08-12 07:58:55 +02:00
memusage.h Prevector type 2015-11-13 18:15:20 +01:00
merkleblock.cpp PARTIAL: typofixes (found by misspell_fixer) 2016-01-16 17:04:08 +01:00
merkleblock.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
miner.cpp Tag 0.12.1 final 2016-07-04 11:20:16 +02:00
miner.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
net.cpp Merge #928: Refactor All The Things - part1 2016-08-05 21:49:45 +02:00
net.h Merge #924: Fix AddRef() usage 2016-07-30 13:05:41 +02:00
netbase.cpp merge #855: Fix bad mn sig ipv6 2016-06-02 08:11:56 +02:00
netbase.h merge #855: Fix bad mn sig ipv6 2016-06-02 08:11:56 +02:00
noui.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
noui.h
pow.cpp reset testnet 2016-05-09 08:32:47 -07:00
pow.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
prevector.h prevector::swap: fix (unreached) data corruption 2016-07-30 05:18:17 +03:00
protocol.cpp Merge #934: Fix Inv Bugs 2016-08-11 19:32:52 +02:00
protocol.h Merge #936: Bump NO_BLOOM_VERSION and SENDHEADERS_VERSION to match PROTOCOL_VERSION 2016-08-12 07:41:23 +02:00
pubkey.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
pubkey.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
random.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
random.h
rest.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
reverselock.h
rpcblockchain.cpp Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
rpcclient.cpp Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
rpcclient.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
rpcgovernance.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
rpcmasternode.cpp Fix GetBlockHash - Currently it's doing the job already done by chainActive and it's off by 1 block 2016-08-07 01:04:15 +03:00
rpcmining.cpp Merge #922: Refactor/fix spork 2016-07-30 13:04:27 +02:00
rpcmisc.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
rpcnet.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
rpcprotocol.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
rpcprotocol.h Merge #921: Fix project name Dash -> Dash Core 2016-07-29 07:30:19 +02:00
rpcrawtransaction.cpp Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
rpcserver.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
rpcserver.h Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
scheduler.cpp
scheduler.h
serialize.h main: serialize height in BE for address index key 2016-06-02 12:15:13 -04:00
spentindex.h main: spentindex for the mempool 2016-06-02 12:15:59 -04:00
spork.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
spork.h Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
streams.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
sync.cpp Few debug related fixes 2016-03-25 16:41:11 +03:00
sync.h fixing more issues 2016-04-14 14:28:33 -07:00
threadsafety.h
timedata.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
timedata.h
tinyformat.h
torcontrol.cpp Merge #822: [Core]: fix restart hanging during wallet-repair 2016-06-05 07:10:41 +02:00
torcontrol.h torcontrol improvements and fixes 2015-11-12 17:58:15 +01:00
txdb.cpp build: fix darwin build 2016-06-02 12:15:37 -04:00
txdb.h rpc: fix issue with querying txids by block heights 2016-06-02 12:15:37 -04:00
txmempool.cpp Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
txmempool.h Merge remote-tracking branch 'bitpay/0.12.1-bitcore' into dashBitcore1 2016-07-19 08:49:28 +03:00
ui_interface.h refactor sync progress ui to use signals, remove lock from masternode str ui 2016-02-19 21:09:54 +03:00
uint256.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
uint256.h Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
undo.h
util.cpp Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
util.h Merge #944: V0.12.1.x governance pr - part 1 - base functionality 2016-08-17 09:08:25 +02:00
utilmoneystr.cpp Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
utilmoneystr.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
utilstrencodings.cpp Merge remote-tracking branch 'bitcoin/0.12' into HEAD 2016-02-06 16:48:04 +03:00
utilstrencodings.h Bump copyright headers to 2015 2016-01-05 14:13:33 +01:00
utiltime.cpp Add masternode tab in qt wallet 2016-05-11 15:50:04 +03:00
utiltime.h Add masternode tab in qt wallet 2016-05-11 15:50:04 +03:00
validationinterface.cpp Merge #903: Implement transaction lock zmq notifications 2016-07-15 08:38:33 +02:00
validationinterface.h Merge #903: Implement transaction lock zmq notifications 2016-07-15 08:38:33 +02:00
version.h Merge #936: Bump NO_BLOOM_VERSION and SENDHEADERS_VERSION to match PROTOCOL_VERSION 2016-08-12 07:41:23 +02:00
versionbits.cpp BIP9 Implementation 2016-03-18 09:14:52 +00:00
versionbits.h BIP9 Implementation 2016-03-18 09:14:52 +00:00