Pieter Wuille
20e01b1a03
Apply clang-format on some infrequently-updated files
10 years ago
ENikS
018cec7c41
Fixing 'vector out of bounds' issue in base 32 and 64
10 years ago
Wladimir J. van der Laan
94064710b9
Write fee estimate and peers files only when initialized
...
Fixes #4669 .
Move the loading of addresses to StartNode() to make it more
self-contained.
10 years ago
Philip Kaufmann
5e83bc404c
[Qt] include and file header cleanup
...
- alphabetical ordering
- correct ordering own headers before normal headers etc.
10 years ago
Wladimir J. van der Laan
a49f11d9ed
qt: Change splash screen to normal window
...
Makes it possible to move, minimize, unminimize the window while
Bitcoin Core is initializing.
10 years ago
Wladimir J. van der Laan
62e5f8f961
CMessageHeader sanity changes
...
- Remove spurious `pchCommand[1] = 1` in CMessageHeader()
- Make sure that pchCommand is zero-padded if length is shorter than
COMMAND_SIZE
- Use strnlen to determine length of pcmCommand in GetCommand
10 years ago
Philip Kaufmann
93f84d0417
cleanup class private and public areas in walletdb
...
- only code movement
10 years ago
Philip Kaufmann
22d7e7014f
prefer const string& over char* in CDB and CWalletDB constructor
...
- also make parameter of CDBEnv::CheckpointLSN a constant reference
10 years ago
imharrywu
c15e483f23
typo fix of booleamn to boolean
10 years ago
Pieter Wuille
ab15b2ec71
Avoid copying undo data
10 years ago
Pieter Wuille
0be990ba34
Move CTxDestination from script/script to script/standard
10 years ago
Philip Kaufmann
f4fe205034
add nModSize init to default constructor of CTxMemPoolEntry
10 years ago
Benedict Chan
1a613963e1
fix missing gettransaction entries in rpcclient
10 years ago
Benedict Chan
57e1716de6
update rpc help message for gettransaction to add includeWatchonly param
10 years ago
randy-waterhouse
52a5f90360
Create the common location for all m4 autotool build scripts, build-aux/m4.
...
Update .gitignore.
10 years ago
imharrywu
e9992fb645
remove include of chainparams.h
...
chainparams.h has not been used in this cpp file already, consider to remove it for clean.
10 years ago
Philip Kaufmann
ee304b6e35
minor changes for help message of getpeerinfo
10 years ago
Suhas Daftuar
f7e36370f3
Eliminate extra assignment
10 years ago
ENikS
ec91092df8
Fixing compiler warning C4101
...
Github-Pull: #4856
10 years ago
Philip Kaufmann
611116d4e3
header include cleanup
...
- ensures alphabetical ordering for includes etc. in source file headers
10 years ago
Philip Kaufmann
2d79bba36b
cleanup new script files (no code changes)
...
- add missing header end comments
- ensure alphabetical ordering
- update copyright year and license
10 years ago
Luke Dashjr
a65e320747
bitcoin-util-test: Test bitcoin-tx with null scriptPubKey
10 years ago
Luke Dashjr
15ef1b905b
Bugfix: bitcoin-tx: scriptPubKey may be null, so accept outscript=<n>:
10 years ago
jtimon
6dcfda2dc4
Don't pass nHashType to EvalScript nor CheckSig
10 years ago
jtimon
2b23a87599
Don't pass nHashType to VerifyScript
10 years ago
jtimon
ce3649fb61
Remove CScriptCheck::nHashType (was always 0)
10 years ago
jtimon
358562b651
Remove unused function main:VerifySignature
10 years ago
Pieter Wuille
efad808aae
Avoid reject message feedback loops
10 years ago
Gavin Andresen
aa3c697e90
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 ago
Gavin Andresen
c74332c678
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 ago
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