Wladimir J. van der Laan
cfefd34f45
Merge #10126 : Compensate for memory peak at flush time
...
7228ce8 Compensate for memory peak at flush time (Pieter Wuille)
Tree-SHA512: 97e9848410fab061402c85d8440c54a50dd8a0203b2ea194013ea116700a6dc1b4b26b8c5f9c9c68c1f5c6b935c5d6c737437c1911b003d9ff5445c570cd449d
2017-10-24 13:53:55 +02:00
Wladimir J. van der Laan
249db27761
Merge #9999 : [LevelDB] Plug leveldb logs to bitcoin logs
...
cfce581 [LevelDB] Plug leveldb logs to bitcoin logs (NicolasDorier)
Tree-SHA512: e40a2c2644c269bb2da7be04aec39ff64ad350d508391750a757955ed3f9d96998775d01e04b282a75b36d776c3960a345cc7b6f1466e6ae167d27518bf4baee
2017-10-24 13:53:52 +02:00
UdjinM6
53f9fd9b27
Merge pull request #1696 from codablock/backport_bitcoin_perutxo_0.14
...
Second batch of per-utxo backports (up until 0.14)
2017-10-24 12:05:40 +03:00
Pieter Wuille
817ecc03d3
Merge #9353 : Add data() method to CDataStream (and use it)
...
5113474 wallet: Use CDataStream.data() (Wladimir J. van der Laan)
e2300ff bench: Use CDataStream.data() (Wladimir J. van der Laan)
adff950 dbwrapper: Use new .data() method of CDataStream (Wladimir J. van der Laan)
a2141e4 streams: Remove special cases for ancient MSVC (Wladimir J. van der Laan)
af4c44c streams: Add data() method to CDataStream (Wladimir J. van der Laan)
2017-10-23 19:07:45 +02:00
Pieter Wuille
ceb64fcd47
Merge #8610 : Share unused mempool memory with coincache
...
ba3cecf Share unused mempool memory with coincache (Pieter Wuille)
2017-10-23 19:07:45 +02:00
Pieter Wuille
09b3e042f4
Merge #9310 : Assert FRESH validity in CCoinsViewCache::BatchWrite
...
dd44ea3 Check FRESH validity in CCoinsViewCache::BatchWrite (Russell Yanofsky)
2017-10-23 19:07:45 +02:00
Pieter Wuille
a589c94a9a
Merge #9107 : Safer modify new coins
...
b50cd7a Fix dangerous condition in ModifyNewCoins. (Alex Morcos)
2017-10-23 19:07:45 +02:00
Wladimir J. van der Laan
4b4d222933
Merge #9308 : [test] Add CCoinsViewCache Access/Modify/Write tests
...
07df40b [test] Add CCoinsViewCache Access/Modify/Write tests (Russell Yanofsky)
2017-10-23 19:07:45 +02:00
Pieter Wuille
6974f1723d
Merge #9346 : Batch construct batches
...
ed58969 Batch construct batches (Pieter Wuille)
2017-10-23 19:07:45 +02:00
Pieter Wuille
6fbe93aa71
Merge #9307 : Remove undefined FetchCoins method declaration
...
fe41f58 Remove undefined FetchCoins method declaration (Russell Yanofsky)
2017-10-23 19:07:45 +02:00
Pieter Wuille
105fd18157
Use fixed preallocation instead of costly GetSerializeSize
...
Dbwrapper used GetSerializeSize() to compute the size of the buffer
to preallocate. For some cases (specifically: CCoins) this requires
a costly compression call. Avoid this by just using fixed size
preallocations instead.
2017-10-23 19:07:45 +02:00
Pieter Wuille
94e01eb660
Merge #8467 : [Trivial] Do not shadow members in dbwrapper
...
4a35e0f Do not shadow members in dbwrapper (Pavel Janík)
2017-10-23 19:02:49 +02:00
UdjinM6
0fdd11ced5
Merge pull request #1691 from codablock/backport_bitcoin_perutxo_0.13
...
First batch of per-utxo backports (up until 0.13)
2017-10-23 19:57:06 +03:00
Wladimir J. van der Laan
e3b7ed449f
Merge #8273 : Bump -dbcache
default to 300MiB
...
efd1d83 doc: Mention dbcache increase in release notes (Wladimir J. van der Laan)
32cab91 Bump `-dbcache` default to 300MiB (Wladimir J. van der Laan)
2017-10-19 10:51:59 +02:00
Wladimir J. van der Laan
952383e16c
Merge #7933 : Fix OOM when deserializing UTXO entries with invalid length
...
1e44169 Add tests for CCoins deserialization (Pieter Wuille)
5d0434d Fix OOM bug: UTXO entries with invalid script length (Pieter Wuille)
4bf631e CDataStream::ignore Throw exception instead of assert on negative nSize. (Patrick Strateman)
4f87af6 Treat overly long scriptPubKeys as unspendable (Pieter Wuille)
f8e6fb1 Introduce constant for maximum CScript length (Pieter Wuille)
2017-10-19 10:51:50 +02:00
Wladimir J. van der Laan
753cb1563b
Merge #7874 : Improve AlreadyHave
...
c6cb6f7 Avoid unnecessary database access for unknown transactions (Alex Morcos)
2017-10-19 10:51:45 +02:00
Alexander Block
60e6a602e6
Use C++11 thread-safe static initializers in coins.h/coins.cpp
...
Taken from Bitcoin #8173/888483098e60f2a944f1d246bbfec4d14a2975f8
Needed to align code for upcoming per-utxo backports.
2017-10-19 10:51:40 +02:00
Pieter Wuille
44526af95a
Use SipHash-2-4 for CCoinsCache index
...
This is ~1.7x slower than the Lookup3-of-Xor-with-salt construct we were
using before, but it is a primitive designed for exactly this.
2017-10-19 10:51:28 +02:00
Pieter Wuille
d92b454a25
Add SipHash-2-4 primitives to hash
2017-10-19 10:51:26 +02:00
Alexander Block
02a6cef94d
Move index structures into spentindex.h
...
txdb.h does not include validation.h anymore, so we need these structs somewhere else
2017-10-19 10:51:23 +02:00
Wladimir J. van der Laan
abaf524f0c
Merge #7815 : Break circular dependency main ↔ txdb
...
99e7075 Break circular dependency main ↔ txdb (Wladimir J. van der Laan)
2017-10-19 10:51:12 +02:00
Wladimir J. van der Laan
2e54bd2e8c
Merge #7927 : Minor changes to dbwrapper to simplify support for other databases
...
869cf12 dbwrapper: Move `HandleError` to `dbwrapper_private` (Wladimir J. van der Laan)
b69836d dbwrapper: Pass parent CDBWrapper into CDBBatch and CDBIterator (Wladimir J. van der Laan)
878bf48 dbwrapper: Remove CDBWrapper::GetObfuscateKeyHex (Wladimir J. van der Laan)
74f7b12 dbwrapper: Remove throw keywords in function signatures (Wladimir J. van der Laan)
2017-10-19 10:51:06 +02:00
Wladimir J. van der Laan
17f2ea5d73
Merge #7904 : txdb: Fix assert crash in new UTXO set cursor
...
a3310b4 txdb: Fix assert crash in new UTXO set cursor (Wladimir J. van der Laan)
2017-10-19 10:50:59 +02:00
Wladimir J. van der Laan
23fe35a18a
Merge #7756 : Add cursor to iterate over utxo set, use this in gettxoutsetinfo
...
509cb00 txdb: Add Cursor() method to CCoinsView to iterate over UTXO set (Wladimir J. van der Laan)
2017-10-19 10:50:25 +02:00
Wladimir J. van der Laan
996f5103a0
Merge #7056 : Save last db read
...
8504867 Save the last unnecessary database read (Alex Morcos)
2017-10-19 10:50:11 +02:00
UdjinM6
4ecbedbe74
fix setnetworkactive
(typo) ( #1682 )
2017-10-17 19:43:03 +03:00
Alexander Block
1df889e231
Add more logging for MN votes and MNs missing votes ( #1683 )
...
* Add logging for MNs which did not vote
* Implement review suggestions
2017-10-17 19:42:44 +03:00
Alexander Block
4cac044d95
Merge #8944 : Remove bogus assert on number of oubound connections. ( #1685 )
...
1ab21cf Remove bogus assert on number of oubound connections. (Matt Corallo)
2017-10-17 19:41:57 +03:00
UdjinM6
46342b2e8a
update nCollateralMinConfBlockHash for local (hot) masternode on mn start ( #1689 )
2017-10-17 19:41:43 +03:00
UdjinM6
f5286b1799
Fix/optimize images ( #1688 )
...
* add Dash-specific paths to `folders` in optimize-pngs.py
* `mogrify src/qt/res/*/*/*.png`
should fix "libpng error: IDAT: chunk data is too large"
* `python contrib/devtools/optimize-pngs.py`
"Total reduction: 500275 bytes"
2017-10-17 19:41:28 +03:00
UdjinM6
28c8d17292
Fix sync reset on lack of activity ( #1686 )
2017-10-17 19:41:08 +03:00
UdjinM6
32ad53e77d
Revert "fix masternode current
rpc ( #1640 )" ( #1681 )
...
This reverts commit 0c1679e58c
.
2017-10-17 19:40:25 +03:00
Alexander Block
2de7560b2f
Update nMinimumChainWork and defaultAssumeValid to more recent values ( #1680 )
...
* Update nMinimumChainWork and defaultAssumeValid to more recent values
* Update checkpoint data of mainnet to height 750000
2017-10-12 15:05:31 +03:00
UdjinM6
cd47ac3faa
fix nLastWatchdogVoteTime updates ( #1679 )
2017-10-12 15:05:17 +03:00
Holger Schinzel
58f9f9bbec
Facelift of splash screens, adding "Digital Cash" tagline ( #1674 )
...
* Facelift of splash screens, adding "Digital Cash" tagline
* testnet: green --> orange
* revert drkblue changes
2017-10-12 15:05:00 +03:00
UdjinM6
52cd4d40d8
Fix bug: nCachedBlockHeight was not updated on start ( #1673 )
...
in submodules if no new blocks were received since previous shutdown.
This was breaking some sync logic e.g. for payment votes.
2017-10-09 21:25:24 +03:00
UdjinM6
296cfd2efa
Fix compilation with qt < 5.2 ( #1672 )
...
* Fix compilation with qt < 5.2
* remove code duplication
2017-10-09 21:25:11 +03:00
thephez
ece884994e
RPC help formatting updates ( #1670 )
...
- Convert satoshis to duffs
- Correct order of fields in GetAddressUtxos
- Add missing field from GetAddressDeltas (blockindex)
- Add HelpExamples to gettxoutproof and verifytxoutproof
2017-10-09 21:24:56 +03:00
UdjinM6
11afd7cfd3
Translations201710 - en, de, fi, fr, ru, vi ( #1659 )
...
* fix "InstantSend: Yes/No" in receiving request dlg
* [qt] Add more sources to translate
backport fae26e8dfc083679d33c57bf5166b83b6783b00a
* fix .pro
* fix typo: memonic -> mnemonic
* fix "s(s)"
* `make translate` + qt linguist
* update ru
* update fi
* update de
* update fr
* update vi
* fix ru
* fix de
2017-10-09 21:24:42 +03:00
UdjinM6
0b6955a7b8
update nMinimumChainWork and defaultAssumeValid for testnet ( #1668 )
2017-10-05 00:01:29 +03:00
UdjinM6
33dbafbba5
fork testnet again to re-test dip0001 because of 2 bugs found in 1st attempt ( #1667 )
2017-10-04 23:13:32 +03:00
UdjinM6
48d63ab296
Relay govobj and govvote to every compatible peer, not only to the one with the same version ( #1662 )
2017-10-04 23:12:53 +03:00
UdjinM6
d286198728
fix: The idea behind fDIP0001LockedInAtTip was to indicate that it WAS locked in, not that it IS locked in ( #1666 )
2017-10-04 22:35:09 +03:00
Ilya Savinov
c3bc06bbf8
fix Examples section of the RPC output for listreceivedbyaccount, listreceivedbyaccount and sendfrom commands ( #1665 )
2017-10-04 22:34:30 +03:00
Ilya Savinov
8c1e5e8384
remove send addresses from listreceivedbyaddress output ( #1664 )
2017-10-04 22:34:14 +03:00
Ilya Savinov
72ef788c5f
Update instantsend.md
according to PR#1628 changes ( #1663 )
...
* fix instantsend.md according to PR#1628
* split examples and add an example for `listreceivedbyaddress 0` command
2017-10-04 22:34:00 +03:00
UdjinM6
381ffdc4bb
Fork testnet to test 12.2 migration ( #1660 )
2017-10-02 00:02:01 +03:00
UdjinM6
278cf144b3
Remove cs_main from ThreadMnbRequestConnections ( #1658 )
2017-09-28 15:03:39 +03:00
UdjinM6
f77efcf247
do not calculate stuff that are not going to be visible in simple PS UI anyway ( #1656 )
2017-09-27 20:43:28 +03:00
UdjinM6
8e9289e12b
Keep track of wallet UTXOs and use them for PS balances and rounds calculations ( #1655 )
...
* keep track of wallet UTXOs and use them for PS balances and rounds calculations
* fix
2017-09-27 20:43:16 +03:00