]> Git Repo - VerusCoin.git/log
VerusCoin.git
10 years agoAvoid reject message feedback loops
Pieter Wuille [Fri, 12 Sep 2014 14:37:53 +0000 (16:37 +0200)]
Avoid reject message feedback loops

10 years agoMerge pull request #4885
Wladimir J. van der Laan [Thu, 11 Sep 2014 12:46:20 +0000 (14:46 +0200)]
Merge pull request #4885

aa3c697 Store fewer orphan tx by default, add -maxorphantx option (Gavin Andresen)
c74332c Stricter handling of orphan transactions (Gavin Andresen)

10 years agoMerge pull request #4892
Wladimir J. van der Laan [Thu, 11 Sep 2014 06:56:23 +0000 (08:56 +0200)]
Merge pull request #4892

e982b57 Use explicit fflush() instead of setvbuf() (Adam Weiss)

10 years agoStore fewer orphan tx by default, add -maxorphantx option
Gavin Andresen [Wed, 10 Sep 2014 18:08:03 +0000 (14:08 -0400)]
Store fewer orphan tx by default, add -maxorphantx option

There is no reason to store thousands of orphan transactions;
normally an orphan's parents will either be broadcast or
mined reasonably quickly.

This pull drops the maximum number of orphans from 10,000 down
to 100, and adds a command-line option (-maxorphantx) that is
just like -maxorphanblocks to override the default.

10 years agoStricter handling of orphan transactions
Gavin Andresen [Thu, 28 Aug 2014 17:23:24 +0000 (13:23 -0400)]
Stricter handling of orphan transactions

Prevent denial-of-service attacks by banning
peers that send us invalid orphan transactions
and only storing orphan transactions given to
us by a peer while the peer is connected.

10 years agoUse explicit fflush() instead of setvbuf()
Adam Weiss [Wed, 10 Sep 2014 16:26:59 +0000 (12:26 -0400)]
Use explicit fflush() instead of setvbuf()

Flushing after every line when printing to console is desirable when
running with systemd but setvbuf() has slightly different semantics
on Windows that causes warnings.  Just do an explicit fflush() after
each line print to console instead.

10 years agoFix crashing bug caused by orphan(s) with duplicate prevout.hash
Gavin Andresen [Tue, 9 Sep 2014 18:01:11 +0000 (14:01 -0400)]
Fix crashing bug caused by orphan(s) with duplicate prevout.hash

10 years agoMerge pull request #4878
Wladimir J. van der Laan [Wed, 10 Sep 2014 14:47:40 +0000 (16:47 +0200)]
Merge pull request #4878

540ac45 Avoid returning many "inv" orphans (Jeff Garzik)
d4168c8 Limit CNode::mapAskFor (Wladimir J. van der Laan)

10 years agoMerge pull request #4623
Wladimir J. van der Laan [Wed, 10 Sep 2014 12:29:16 +0000 (14:29 +0200)]
Merge pull request #4623

e84843c Broken addresses on command line no longer trigger testnet. (Ross Nicoll)

10 years agoMerge pull request #4755
Wladimir J. van der Laan [Wed, 10 Sep 2014 10:51:56 +0000 (12:51 +0200)]
Merge pull request #4755

c1e433b Rename scriptutils.o to wallet_ismine.o (jtimon)
8b59a3d Move CAffectedKeysVisitor to wallet.cpp (remove ExtractAffectedKeys) (jtimon)
0d2fa14 Move scriptutils.o to wallet (jtimon)

10 years agoRename scriptutils.o to wallet_ismine.o
jtimon [Sat, 30 Aug 2014 11:40:37 +0000 (13:40 +0200)]
Rename scriptutils.o to wallet_ismine.o

10 years agoMove CAffectedKeysVisitor to wallet.cpp (remove ExtractAffectedKeys)
jtimon [Wed, 27 Aug 2014 15:46:30 +0000 (17:46 +0200)]
Move CAffectedKeysVisitor to wallet.cpp (remove ExtractAffectedKeys)

10 years agoMove scriptutils.o to wallet
jtimon [Fri, 29 Aug 2014 20:07:39 +0000 (22:07 +0200)]
Move scriptutils.o to wallet

10 years agoMerge pull request #4874
Wladimir J. van der Laan [Wed, 10 Sep 2014 08:55:30 +0000 (10:55 +0200)]
Merge pull request #4874

21f139b qt: fix tablet crash. closes #4854. (Cory Fields)

10 years agoMerge pull request #4867
Wladimir J. van der Laan [Wed, 10 Sep 2014 08:11:04 +0000 (10:11 +0200)]
Merge pull request #4867

a95b119 qt: Remove thousands separators after decimal point (Wladimir J. van der Laan)

10 years agoMerge pull request #4822
Pieter Wuille [Tue, 9 Sep 2014 23:38:43 +0000 (01:38 +0200)]
Merge pull request #4822

629d75f Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins. (Pieter Wuille)

10 years agoMerge pull request #4882
Pieter Wuille [Tue, 9 Sep 2014 23:36:41 +0000 (01:36 +0200)]
Merge pull request #4882

faadbe1 remove unneeded cast in rpcmisc.cpp (Philip Kaufmann)

10 years agoremove unneeded cast in rpcmisc.cpp
Philip Kaufmann [Tue, 9 Sep 2014 08:09:59 +0000 (10:09 +0200)]
remove unneeded cast in rpcmisc.cpp

10 years agoMerge pull request #4868
Pieter Wuille [Tue, 9 Sep 2014 14:39:35 +0000 (16:39 +0200)]
Merge pull request #4868

2c2cc5d Remove some unnecessary c_strs() in logging and the GUI (Philip Kaufmann)
f7d0a86 netbase: Use .data() instead of .c_str() on binary string (Wladimir J. van der Laan)

10 years agoRemove some unnecessary c_strs() in logging and the GUI
Philip Kaufmann [Mon, 8 Sep 2014 10:25:52 +0000 (12:25 +0200)]
Remove some unnecessary c_strs() in logging and the GUI

Includes `core: remove unneeded c_str() / Qt: replace c_str() with Qt code`
by P. Kaufmann.

10 years agoAvoid returning many "inv" orphans
Jeff Garzik [Tue, 9 Sep 2014 07:26:52 +0000 (09:26 +0200)]
Avoid returning many "inv" orphans

10 years agoLimit CNode::mapAskFor
Wladimir J. van der Laan [Tue, 9 Sep 2014 07:18:05 +0000 (09:18 +0200)]
Limit CNode::mapAskFor

Tighten resource constraints on CNode.

10 years agoMerge pull request #4873
Wladimir J. van der Laan [Tue, 9 Sep 2014 07:13:38 +0000 (09:13 +0200)]
Merge pull request #4873

89d91f6 Avoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrev (Wladimir J. van der Laan)

10 years agoqt: fix tablet crash. closes #4854.
Cory Fields [Sat, 6 Sep 2014 02:55:54 +0000 (22:55 -0400)]
qt: fix tablet crash. closes #4854.

This backports the relevant parts of:
https://codereview.qt-project.org/#/c/82689/

10 years agoMerge pull request #4754
Pieter Wuille [Mon, 8 Sep 2014 18:34:01 +0000 (20:34 +0200)]
Merge pull request #4754

e088d65 Separate script/sign (jtimon)
9294a4b Separate CScriptCompressor (jtimon)
c4408a6 Separate script/standard (jtimon)
da03e6e Separate script/interpreter (jtimon)
cbd22a5 Move CScript class and dependencies to script/script (jtimon)
86dbeea Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes) (jtimon)

Rebased-by: Pieter Wuille
10 years agoSeparate script/sign
jtimon [Wed, 27 Aug 2014 15:22:33 +0000 (17:22 +0200)]
Separate script/sign

10 years agoSeparate CScriptCompressor
jtimon [Wed, 20 Aug 2014 16:33:30 +0000 (18:33 +0200)]
Separate CScriptCompressor

10 years agoSeparate script/standard
jtimon [Sat, 23 Aug 2014 01:35:51 +0000 (03:35 +0200)]
Separate script/standard

10 years agoSeparate script/interpreter
jtimon [Wed, 27 Aug 2014 18:11:41 +0000 (20:11 +0200)]
Separate script/interpreter

10 years agoMove CScript class and dependencies to script/script
jtimon [Wed, 20 Aug 2014 15:37:40 +0000 (17:37 +0200)]
Move CScript class and dependencies to script/script

10 years agoRename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)
jtimon [Thu, 14 Aug 2014 11:54:05 +0000 (13:54 +0200)]
Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)

10 years agoAvoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrev
Wladimir J. van der Laan [Mon, 8 Sep 2014 15:37:26 +0000 (17:37 +0200)]
Avoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrev

10 years agoMerge pull request #4865
Pieter Wuille [Mon, 8 Sep 2014 13:13:46 +0000 (15:13 +0200)]
Merge pull request #4865

8e44f2e Clarify 'compressed nor uncompressed' error message (Peter Todd)

10 years agonetbase: Use .data() instead of .c_str() on binary string
Wladimir J. van der Laan [Mon, 8 Sep 2014 10:20:50 +0000 (12:20 +0200)]
netbase: Use .data() instead of .c_str() on binary string

`.c_str()` is only guaranteed to return the data up to the first NUL
character.

10 years agoMerge pull request #4712
Wladimir J. van der Laan [Mon, 8 Sep 2014 09:59:57 +0000 (11:59 +0200)]
Merge pull request #4712

80daee0 [Qt] Call checkBalanceChanged() periodically instead for every updated transaction (Cozz Lovan)

10 years agoMerge pull request #4697
Wladimir J. van der Laan [Mon, 8 Sep 2014 09:05:41 +0000 (11:05 +0200)]
Merge pull request #4697

da2ede2 [Wallet] Improve ReorderTransactions(..) (Cozz Lovan)

10 years agoqt: Remove thousands separators after decimal point
Wladimir J. van der Laan [Mon, 8 Sep 2014 08:40:54 +0000 (10:40 +0200)]
qt: Remove thousands separators after decimal point

Revert thousands separators after decimal point, as introduced in #4167.

10 years agoMerge pull request #4862
Wladimir J. van der Laan [Mon, 8 Sep 2014 07:14:10 +0000 (09:14 +0200)]
Merge pull request #4862

45a4baf Add testnet DNS seed of Andreas Schildbach. (Andreas Schildbach)

10 years agoClarify 'compressed nor uncompressed' error message
Peter Todd [Mon, 8 Sep 2014 02:32:57 +0000 (22:32 -0400)]
Clarify 'compressed nor uncompressed' error message

10 years agoAdd testnet DNS seed of Andreas Schildbach.
Andreas Schildbach [Sun, 7 Sep 2014 09:11:57 +0000 (11:11 +0200)]
Add testnet DNS seed of Andreas Schildbach.

It runs sipas crawler, but rather than using its custom nameserver implementation it serves a generated zonefile via bind9. The zone always contains 25 IPv4 and 25 IPv6 peers. FWIW, the zone is secured using DNSSEC.

10 years agoMerge pull request #4851
Pieter Wuille [Sat, 6 Sep 2014 19:09:50 +0000 (21:09 +0200)]
Merge pull request #4851

41ef558 univalue: make spaceStr thread-safe (Wladimir J. van der Laan)

10 years agoMerge pull request #4839
Wladimir J. van der Laan [Sat, 6 Sep 2014 08:26:26 +0000 (10:26 +0200)]
Merge pull request #4839

346193b Cleanup messy error messages (R E Broadley)

10 years agoCleanup messy error messages
R E Broadley [Thu, 4 Sep 2014 02:59:20 +0000 (09:59 +0700)]
Cleanup messy error messages

10 years agoMerge pull request #4849
Pieter Wuille [Fri, 5 Sep 2014 20:53:56 +0000 (22:53 +0200)]
Merge pull request #4849

a264e44 remove dup include of foreach.hpp in script.cpp (Philip Kaufmann)

10 years agoMerge pull request #4836 from morcos/fix-make_change
Gavin Andresen [Fri, 5 Sep 2014 14:48:28 +0000 (10:48 -0400)]
Merge pull request #4836 from morcos/fix-make_change

Fix make_change to not create half-satoshis

10 years agoFix make_change to not create half-satoshis
Gavin Andresen [Wed, 3 Sep 2014 19:07:43 +0000 (15:07 -0400)]
Fix make_change to not create half-satoshis

10 years agounivalue: make spaceStr thread-safe
Wladimir J. van der Laan [Fri, 5 Sep 2014 11:10:39 +0000 (13:10 +0200)]
univalue: make spaceStr thread-safe

Simply add spaces to the existing string instead of using a
temporary.

Fixes #4756.

10 years agoImprove readability of CAddrInfo::IsTerrible
Teran McKinney [Mon, 18 Aug 2014 19:33:51 +0000 (19:33 +0000)]
Improve readability of CAddrInfo::IsTerrible

- Replaced 86400 with 24*60*60
- Remove references to specific timespans in comments

Github-Pull: #4724

10 years agoMerge pull request #4850
Wladimir J. van der Laan [Fri, 5 Sep 2014 11:33:37 +0000 (13:33 +0200)]
Merge pull request #4850

1ffb99b [Qt] copyright, style and indentation cleanup of Qt tests (Philip Kaufmann)

10 years ago[Qt] copyright, style and indentation cleanup of Qt tests
Philip Kaufmann [Fri, 5 Sep 2014 11:11:11 +0000 (13:11 +0200)]
[Qt] copyright, style and indentation cleanup of Qt tests

10 years agoMerge pull request #4843
Wladimir J. van der Laan [Fri, 5 Sep 2014 10:27:00 +0000 (12:27 +0200)]
Merge pull request #4843

81061ff travis: add osx build (Cory Fields)
e4cf9f8 depends: fix typo in source downloading. Regression from c897b1e732. (Cory Fields)

10 years agoremove dup include of foreach.hpp in script.cpp
Philip Kaufmann [Fri, 5 Sep 2014 07:49:57 +0000 (09:49 +0200)]
remove dup include of foreach.hpp in script.cpp

10 years agoMerge pull request #4838
Pieter Wuille [Thu, 4 Sep 2014 21:48:01 +0000 (23:48 +0200)]
Merge pull request #4838

1e4f87f Use memcmp for uint256 equality/inequality (Pieter Wuille)
8a41e1e Use boost::unordered_map for mapBlockIndex (Pieter Wuille)
145d5be Introduce BlockMap type for mapBlockIndex (Pieter Wuille)
a0dbe43 checkpoints.cpp depends on main, it can use mapBlockIndex directly (Pieter Wuille)

10 years agotravis: add osx build
Cory Fields [Wed, 3 Sep 2014 18:14:01 +0000 (14:14 -0400)]
travis: add osx build

10 years agodepends: fix typo in source downloading. Regression from c897b1e732.
Cory Fields [Thu, 4 Sep 2014 17:12:13 +0000 (13:12 -0400)]
depends: fix typo in source downloading. Regression from c897b1e732.

Some sources are renamed after download, since the filenames don't play nice
with (for example) gitian. This fixes the rename.

Needed for OSX build as it renames a file.

10 years agoMerge pull request #4783
Wladimir J. van der Laan [Thu, 4 Sep 2014 14:43:22 +0000 (16:43 +0200)]
Merge pull request #4783

fbe0fca [Qt] minor watch-only changes (Philip Kaufmann)

10 years agoMerge pull request #4762
Wladimir J. van der Laan [Thu, 4 Sep 2014 13:19:55 +0000 (15:19 +0200)]
Merge pull request #4762

399cdbc contrib/linearize: Add feature to set file's timestamp based on block header time. (Jeff Garzik)
8f5a423 contrib/linearize: split block files based on year-month, not just year (Jeff Garzik)
75400a2 contrib/linearize: Guarantee that output is generated in-order (Jeff Garzik)

10 years agocontrib/linearize: Add feature to set file's timestamp based on block header time.
Jeff Garzik [Sun, 24 Aug 2014 15:37:14 +0000 (11:37 -0400)]
contrib/linearize: Add feature to set file's timestamp based on block header time.

10 years agoMerge pull request #4833
Wladimir J. van der Laan [Thu, 4 Sep 2014 11:31:10 +0000 (13:31 +0200)]
Merge pull request #4833

bbda402 net: Remove MilliSleep from StopNode (Wladimir J. van der Laan)

10 years agoMerge pull request #4790
Wladimir J. van der Laan [Thu, 4 Sep 2014 11:30:29 +0000 (13:30 +0200)]
Merge pull request #4790

9189f5f remove useless millisleep (phantomcircuit)

10 years agoMerge pull request #4842
Wladimir J. van der Laan [Thu, 4 Sep 2014 11:21:05 +0000 (13:21 +0200)]
Merge pull request #4842

fb51e28 Added XML syntax highlighting (himynameismartin)

10 years agoAdded XML syntax highlighting
himynameismartin [Thu, 4 Sep 2014 10:45:28 +0000 (12:45 +0200)]
Added XML syntax highlighting

10 years agoUse memcmp for uint256 equality/inequality
Pieter Wuille [Thu, 4 Sep 2014 00:03:39 +0000 (02:03 +0200)]
Use memcmp for uint256 equality/inequality

10 years agoUse boost::unordered_map for mapBlockIndex
Pieter Wuille [Thu, 4 Sep 2014 00:03:17 +0000 (02:03 +0200)]
Use boost::unordered_map for mapBlockIndex

10 years agoIntroduce BlockMap type for mapBlockIndex
Pieter Wuille [Thu, 4 Sep 2014 00:02:44 +0000 (02:02 +0200)]
Introduce BlockMap type for mapBlockIndex

10 years agocheckpoints.cpp depends on main, it can use mapBlockIndex directly
Pieter Wuille [Thu, 4 Sep 2014 00:01:10 +0000 (02:01 +0200)]
checkpoints.cpp depends on main, it can use mapBlockIndex directly

10 years agoMerge pull request #4808
Pieter Wuille [Wed, 3 Sep 2014 18:54:10 +0000 (20:54 +0200)]
Merge pull request #4808

3f6540a Rename IMPLEMENT_SERIALIZE to ADD_SERIALIZE_METHODS (Pieter Wuille)
47eb765 Serializer simplifications after IMPLEMENT_SERIALIZE overhaul (Pieter Wuille)

10 years agoMerge pull request #4820
Pieter Wuille [Wed, 3 Sep 2014 18:50:34 +0000 (20:50 +0200)]
Merge pull request #4820

910526d Use OR of respective block flags for masks (Pieter Wuille)

10 years agoMerge pull request #4671
Wladimir J. van der Laan [Wed, 3 Sep 2014 16:29:30 +0000 (18:29 +0200)]
Merge pull request #4671

550d4fa Remove DNS Seeds run by entities which were never well-established. (Matt Corallo)

10 years agoCombine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins.
Pieter Wuille [Tue, 2 Sep 2014 19:21:15 +0000 (21:21 +0200)]
Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins.

The efficient version of CCoinsViewCache::GetCoins only works for known-to-exist
cache entries, requiring a separate HaveCoins call beforehand. This is
inefficient as both perform a hashtable lookup.

Replace the non-mutable GetCoins with AccessCoins, which returns a potentially-NULL
pointer. This also decreases the overloading of GetCoins.

Also replace some copying (inefficient) GetCoins calls with equivalent AccessCoins,
decreasing the copying.

10 years agonet: Remove MilliSleep from StopNode
Wladimir J. van der Laan [Wed, 3 Sep 2014 10:20:47 +0000 (12:20 +0200)]
net: Remove MilliSleep from StopNode

I don't understand why it would be there in the first place. This looks
like voodoo, not programming.

10 years agoRemove DNS Seeds run by entities which were never well-established.
Matt Corallo [Sun, 10 Aug 2014 03:57:47 +0000 (20:57 -0700)]
Remove DNS Seeds run by entities which were never well-established.

10 years agoremove useless millisleep
phantomcircuit [Sat, 30 Aug 2014 01:21:18 +0000 (18:21 -0700)]
remove useless millisleep

reduces time to service requests improving performance

10 years agoUse OR of respective block flags for masks
Pieter Wuille [Tue, 2 Sep 2014 16:56:47 +0000 (18:56 +0200)]
Use OR of respective block flags for masks

10 years agoMerge pull request #4812
Pieter Wuille [Tue, 2 Sep 2014 13:11:44 +0000 (15:11 +0200)]
Merge pull request #4812

53efb09 Discover some missing includes (jtimon)
8d5e510 Remove unused function StackString() and class CCoins; (jtimon)

10 years agoMerge pull request #4810
Wladimir J. van der Laan [Tue, 2 Sep 2014 08:07:23 +0000 (10:07 +0200)]
Merge pull request #4810

c0f5d4a Fixing Compiler Error C2466 (ENikS)

10 years agoRename IMPLEMENT_SERIALIZE to ADD_SERIALIZE_METHODS
Pieter Wuille [Tue, 2 Sep 2014 07:58:09 +0000 (09:58 +0200)]
Rename IMPLEMENT_SERIALIZE to ADD_SERIALIZE_METHODS

10 years agoDiscover some missing includes
jtimon [Sat, 23 Aug 2014 03:09:47 +0000 (05:09 +0200)]
Discover some missing includes

10 years agoRemove unused function StackString() and class CCoins;
jtimon [Sat, 23 Aug 2014 01:52:54 +0000 (03:52 +0200)]
Remove unused function StackString() and class CCoins;

10 years agoFixing Compiler Error C2466
ENikS [Mon, 1 Sep 2014 23:51:25 +0000 (19:51 -0400)]
Fixing Compiler Error C2466

10 years agoSerializer simplifications after IMPLEMENT_SERIALIZE overhaul
Pieter Wuille [Mon, 1 Sep 2014 19:36:46 +0000 (21:36 +0200)]
Serializer simplifications after IMPLEMENT_SERIALIZE overhaul

10 years agoMerge pull request #4737
Pieter Wuille [Mon, 1 Sep 2014 19:00:32 +0000 (21:00 +0200)]
Merge pull request #4737

31e9a83 Use CSizeComputer to avoid counting sizes in SerializationOp (Pieter Wuille)
84881f8 rework overhauled serialization methods to non-static (Kamil Domanski)
5d96b4a remove fields of ser_streamplaceholder (Kamil Domanski)
3d796f8 overhaul serialization code (Kamil Domanski)

10 years agoMerge pull request #4779
Wladimir J. van der Laan [Mon, 1 Sep 2014 11:54:02 +0000 (13:54 +0200)]
Merge pull request #4779

093303a add missing header end comments (Philip Kaufmann)

10 years agoMerge pull request #4767
Wladimir J. van der Laan [Mon, 1 Sep 2014 08:28:27 +0000 (10:28 +0200)]
Merge pull request #4767

b144a74 depends: bump miniupnpc to 1.9.20140701. (Cory Fields)
f628127 depends: bump openssl to 1.0.1i (Cory Fields)
9f7f504 build: add -DMINIUPNP_STATICLIB for new version (Cory Fields)

10 years agoMerge pull request #4780
Wladimir J. van der Laan [Mon, 1 Sep 2014 08:26:36 +0000 (10:26 +0200)]
Merge pull request #4780

4d04492 add missing copyright headers (Philip Kaufmann)

10 years agoMerge pull request #4776
Wladimir J. van der Laan [Mon, 1 Sep 2014 08:10:51 +0000 (10:10 +0200)]
Merge pull request #4776

6f5d33b Update translations after update script improvements (Wladimir J. van der Laan)
da59f28 Add deeper XML checking to update-translation script (Wladimir J. van der Laan)

10 years agoUpdate translations after update script improvements
Wladimir J. van der Laan [Thu, 28 Aug 2014 11:10:32 +0000 (13:10 +0200)]
Update translations after update script improvements

10 years agoAdd deeper XML checking to update-translation script
Wladimir J. van der Laan [Thu, 28 Aug 2014 11:09:19 +0000 (13:09 +0200)]
Add deeper XML checking to update-translation script

- Catch problems such as mismatched formatting characters. Remove
  messages that can give problems at runtime.

- Also remove unfinished/untranslated messages, they just take up space
  in the ts and waste parsing time.

Fixes #4774.

10 years agoMerge pull request #4768
Wladimir J. van der Laan [Mon, 1 Sep 2014 07:41:50 +0000 (09:41 +0200)]
Merge pull request #4768

2e28031 Perform CVerifyDB on pcoinsdbview instead of pcoinsTip (Wladimir J. van der Laan)

10 years agoUse CSizeComputer to avoid counting sizes in SerializationOp
Pieter Wuille [Wed, 20 Aug 2014 22:49:32 +0000 (00:49 +0200)]
Use CSizeComputer to avoid counting sizes in SerializationOp

10 years agorework overhauled serialization methods to non-static
Kamil Domanski [Wed, 20 Aug 2014 20:44:38 +0000 (22:44 +0200)]
rework overhauled serialization methods to non-static

Thanks to Pieter Wuille for most of the work on this commit.
I did not fixup the overhaul commit, because a rebase conflicted
with "remove fields of ser_streamplaceholder".
I prefer not to risk making a mistake while resolving it.

10 years agoremove fields of ser_streamplaceholder
Kamil Domanski [Wed, 20 Aug 2014 16:09:29 +0000 (18:09 +0200)]
remove fields of ser_streamplaceholder

The nType and nVersion fields of stream objects are never accessed
from outside the class (or perhaps from the inside too, I haven't checked).
Thus no need to have them in a placeholder, whose only purpose is to
fill the "Stream" template parameter in serialization implementation.

10 years agooverhaul serialization code
Kamil Domanski [Wed, 20 Aug 2014 06:42:31 +0000 (08:42 +0200)]
overhaul serialization code

The implementation of each class' serialization/deserialization is no longer
passed within a macro. The implementation now lies within a template of form:

template <typename T, typename Stream, typename Operation>
inline static size_t SerializationOp(T thisPtr, Stream& s, Operation ser_action, int nType, int nVersion) {
    size_t nSerSize = 0;
    /* CODE */
    return nSerSize;
}

In cases when codepath should depend on whether or not we are just deserializing
(old fGetSize, fWrite, fRead flags) an additional clause can be used:
bool fRead = boost::is_same<Operation, CSerActionUnserialize>();

The IMPLEMENT_SERIALIZE macro will now be a freestanding clause added within
class' body (similiar to Qt's Q_OBJECT) to implement GetSerializeSize,
Serialize and Unserialize. These are now wrappers around
the "SerializationOp" template.

10 years agoBroken addresses on command line no longer trigger testnet.
Ross Nicoll [Sat, 2 Aug 2014 18:54:57 +0000 (19:54 +0100)]
Broken addresses on command line no longer trigger testnet.

When passing a bitcoin: URI on the command line, invalid addresses do not incorrectly send the
user to the test network.

10 years agochanged field types in some structures to equivalent unambiguous types
Kamil Domanski [Thu, 7 Aug 2014 13:39:49 +0000 (15:39 +0200)]
changed field types in some structures to equivalent unambiguous types

Conflicts:
src/core.cpp

Rebased-By: Wladimir J. van der Laan
Github-Pull: #4180

10 years agoMerge pull request #4789
Wladimir J. van der Laan [Sat, 30 Aug 2014 03:58:25 +0000 (05:58 +0200)]
Merge pull request #4789

bac5586 Replace weird characters by normal spaces (Pieter Wuille)

10 years agoMerge pull request #4781
Pieter Wuille [Sat, 30 Aug 2014 00:38:23 +0000 (02:38 +0200)]
Merge pull request #4781

187115c cleanup include of assert.h (Philip Kaufmann)

10 years agoReplace weird characters by normal spaces
Pieter Wuille [Sat, 30 Aug 2014 00:35:05 +0000 (02:35 +0200)]
Replace weird characters by normal spaces

10 years agoMerge pull request #4778
Jeff Garzik [Sat, 30 Aug 2014 00:22:06 +0000 (20:22 -0400)]
Merge pull request #4778

10 years agoMerge pull request #4788
Jeff Garzik [Sat, 30 Aug 2014 00:14:53 +0000 (20:14 -0400)]
Merge pull request #4788

This page took 0.067207 seconds and 4 git commands to generate.