Suhas Daftuar
ec7eb0fa80
When reindexing check for file before trying to open (refactored)
10 years ago
Adam Weiss
e982b574a5
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 ago
Gavin Andresen
def2fdb4b9
Fix crashing bug caused by orphan(s) with duplicate prevout.hash
10 years ago
jtimon
c1e433b717
Rename scriptutils.o to wallet_ismine.o
10 years ago
jtimon
8b59a3d366
Move CAffectedKeysVisitor to wallet.cpp (remove ExtractAffectedKeys)
10 years ago
jtimon
0d2fa14a34
Move scriptutils.o to wallet
10 years ago
Wladimir J. van der Laan
6050ab6855
netbase: Make SOCKS5 negotiation interruptible
...
Avoids that SOCKS5 negotiation will hold up the shutdown process.
- Sockets can stay in non-blocking mode, no need to switch it on/off
anymore
- Adds a timeout (20 seconds) on SOCK5 negotiation. This should be
enough for even Tor to get a connection to a hidden service, and
avoids blocking the opencon thread indefinitely on a hanging proxy.
Fixes #2954 .
10 years ago
Philip Kaufmann
faadbe1733
remove unneeded cast in rpcmisc.cpp
10 years ago
Philip Kaufmann
2c2cc5dac1
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 ago
Jeff Garzik
540ac4514d
Avoid returning many "inv" orphans
10 years ago
Wladimir J. van der Laan
d4168c82be
Limit CNode::mapAskFor
...
Tighten resource constraints on CNode.
10 years ago
Pieter Wuille
6022b5dc6b
Make script_{valid,invalid}.json validation flags configurable
10 years ago
jtimon
e8b5f0d549
Move CBlockIndex, CChain and related code out of main
10 years ago
jtimon
6db83db3eb
Decouple CChain from mapBlockIndex
10 years ago
jtimon
e088d65acb
Separate script/sign
10 years ago
jtimon
9294a4bbe7
Separate CScriptCompressor
10 years ago
jtimon
c4408a6c85
Separate script/standard
10 years ago
jtimon
da03e6ed7c
Separate script/interpreter
10 years ago
jtimon
cbd22a50c4
Move CScript class and dependencies to script/script
10 years ago
jtimon
86dbeea2cd
Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)
10 years ago
Wladimir J. van der Laan
89d91f6aa7
Avoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrev
10 years ago
Alex Morcos
c26649f9ed
Track modified size in TxMemPoolEntry so that we can correctly compute priority.
10 years ago
Wladimir J. van der Laan
f7d0a86bf6
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 ago
Wladimir J. van der Laan
a95b1199db
qt: Remove thousands separators after decimal point
...
Revert thousands separators after decimal point, as introduced in #4167 .
10 years ago
Peter Todd
8e44f2e00a
Clarify 'compressed nor uncompressed' error message
10 years ago
Andreas Schildbach
45a4baf100
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 ago
ENikS
8d657a6517
Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'
10 years ago
R E Broadley
346193bd93
Cleanup messy error messages
10 years ago
Wladimir J. van der Laan
41ef558aa9
univalue: make spaceStr thread-safe
...
Simply add spaces to the existing string instead of using a
temporary.
Fixes #4756 .
10 years ago
Philip Kaufmann
2605b94d73
[Qt] update form files for setting autoDefault explicitly to false
...
- also fixes indentation in one file (auto fixed by Qt Designer)
- removes several default parameters, which are not needed in the files
- related to #4840 (but not intended as fix for a no-bug)
10 years ago
Teran McKinney
f79323b0dd
Improve readability of CAddrInfo::IsTerrible
...
- Replaced 86400 with 24*60*60
- Remove references to specific timespans in comments
Github-Pull: #4724
10 years ago
Philip Kaufmann
1ffb99b07f
[Qt] copyright, style and indentation cleanup of Qt tests
10 years ago
Philip Kaufmann
a264e445ff
remove dup include of foreach.hpp in script.cpp
10 years ago
Pieter Wuille
1e4f87f5a1
Use memcmp for uint256 equality/inequality
10 years ago
Pieter Wuille
8a41e1edd4
Use boost::unordered_map for mapBlockIndex
10 years ago
Pieter Wuille
145d5be896
Introduce BlockMap type for mapBlockIndex
10 years ago
Pieter Wuille
a0dbe433bd
checkpoints.cpp depends on main, it can use mapBlockIndex directly
10 years ago
Pieter Wuille
629d75faac
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 ago
Wladimir J. van der Laan
bbda40226b
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 ago
Matt Corallo
550d4fa7a7
Remove DNS Seeds run by entities which were never well-established.
10 years ago
phantomcircuit
9189f5fe4d
remove useless millisleep
...
reduces time to service requests improving performance
10 years ago
Pieter Wuille
910526d848
Use OR of respective block flags for masks
10 years ago
Pieter Wuille
3f6540ad8f
Rename IMPLEMENT_SERIALIZE to ADD_SERIALIZE_METHODS
10 years ago
jtimon
53efb09e4c
Discover some missing includes
10 years ago
jtimon
8d5e5102f6
Remove unused function StackString() and class CCoins;
10 years ago
ENikS
c0f5d4aba5
Fixing Compiler Error C2466
10 years ago
Pieter Wuille
47eb76597e
Serializer simplifications after IMPLEMENT_SERIALIZE overhaul
10 years ago
Wladimir J. van der Laan
6f5d33b3d2
Update translations after update script improvements
10 years ago
Cozz Lovan
d920f7dcf8
Move g_signals.SetBestChain(..) below SyncWithWallets
10 years ago
Pieter Wuille
31e9a8384a
Use CSizeComputer to avoid counting sizes in SerializationOp
10 years ago