aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | Add a timer to check for changes in immature or unconfirmed balances,Scott Ellis2012-07-063-14/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when these are non-zero. Fixed a minor mem leak.
* | | | | | | | | | Warn if blockchain majority doesn't match CBlock::CURRENT_VERSIONGavin Andresen2012-07-061-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a warning "this version is obsolete, upgrade required" if more than 50 of the previous 100 blocks in the blockchain are a new version.
* | | | | | | | | | Treat non-version-1 transactions as non-standardGavin Andresen2012-07-062-2/+7
| |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds CBlock::CURRENT_VERSION and CTransaction::CURRENT_VERSION constants, and makes non-CURRENT_VERSION transactions nonstandard. This will help make future upgrades smoother.
* | | | | | | | | Merge pull request #1304 from rebroad/ShowBlockTimestampJeff Garzik2012-07-052-4/+13
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Show block timestamp
| * | | | | | | | | Show the timestamp for the block.R E Broadley2012-05-292-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wrap lines
* | | | | | | | | | bitcoinrpc.cpp: Removed outdated commentJeff Garzik2012-07-051-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #1373
* | | | | | | | | | Merge branch 'uri' of https://github.com/TheBlueMatt/bitcoinGavin Andresen2012-07-054-21/+14
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Revert "Disable bitcoin: URI handling on Windows for the 0.6 release"Matt Corallo2012-06-152-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7b90edb5a6cada7176012d09d748847b5f966585.
| * | | | | | | | | | Fix #956 the Boost 1.49 way.Matt Corallo2012-06-151-0/+5
| | | | | | | | | | |
| * | | | | | | | | | Upgrade to Boost 1.49 on Win32Matt Corallo2012-06-152-8/+8
| | | | | | | | | | |
* | | | | | | | | | | Use unsigned ints to fix signed/unsigned warningsGavin Andresen2012-07-053-10/+11
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #1554 from jgarzik/dup-gethashJeff Garzik2012-07-052-19/+17
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove duplicate GetHash() in ConnectBlock
| * | | | | | | | | | | CTxMemPool: eliminate redundant lock, GetHash() callJeff Garzik2012-07-042-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ::addUnchecked()'s only caller already takes the necessary lock, and has already calculated the TX's hash.
| * | | | | | | | | | | Remove duplicate GetHash() in ConnectBlockMatt Corallo2012-07-041-14/+14
| | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | |
* | | | | | | | | | | Implement raw transaction RPC callsGavin Andresen2012-07-0511-56/+749
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement listunspent / getrawtransaction / createrawtransaction / signrawtransaction, to support creation and signing-on-multiple-device multisignature transactions.
* | | | | | | | | | | RPCTypeCheck method to make type-checking JSON Arrays easier.Gavin Andresen2012-07-052-0/+52
| | | | | | | | | | |
* | | | | | | | | | | Refactor: SignSignature/VerifyScriptGavin Andresen2012-07-052-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Minor refactor to support signrawtx signing/verifying transactions when it might only have the previous transaction's txid and txOut.
* | | | | | | | | | | Rework gettransaction / getblock RPC callsGavin Andresen2012-07-051-264/+28
| |_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PULL reworks new (post-0.6.*) features of the gettransaction/getblock RPC calls as follows: It removes the 'decompositions' object argument from getblock, replacing it just a list of transaction hashes; equivalent (I believe) of passing the {"tx":"hash"} decomposition. It replaces the 'decompositions' object argument of gettransaction with a boolean flag; if true, returns the same stuff that the {"script":"obj"} decomposition would return (txins/txouts as hex, disassembled, and bitcoin addresses). It adds a "rawtx" field to the output of gettransaction, that is the entire transaction serialized and hex-encoded. It removes the "size" field from gettransaction, since the size is trivial to compute from the "rawtx" field (either take the length after hex-decoding, or just compute it as hex-length/2).
* | | | | | | | | | Merge pull request #1555 from TheBlueMatt/warningsJeff Garzik2012-07-042-5/+13
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Fix remaining compile warnings.
| * | | | | | | | | | Fix remaining warnings.Matt Corallo2012-07-042-5/+13
| |/ / / / / / / / /
* | | | | | | | | | Merge branch 'buildupdates' of https://github.com/TheBlueMatt/bitcoinGavin Andresen2012-07-042-4/+4
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
| * | | | | | | | | Work around a distcc bug where -MMD output isn't copied.Matt Corallo2012-07-032-4/+4
| | |_|/ / / / / / | |/| | | | | | |
* | | | | | | | | RPC: add support for JSON-RPC 2.0-style request batchingJeff Garzik2012-07-031-5/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the top-level object is an array, it is assumed to be an array of JSON-RPC requests. An array is returned, containing one response (error or not) per request, in the order submitted. In a slight change in semantics, batched requests -always- return an HTTP 200 OK status, even ones full of invalid or incorrect requests.
* | | | | | | | | RPC: break out high level JSON-RPC req/resp into their own functionsJeff Garzik2012-07-031-30/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prepares for JSON-RPC 2.0 batches.
* | | | | | | | | Merge pull request #1546 from gmaxwell/allowsamenetinboundJeff Garzik2012-07-031-3/+4
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Do not consider inbound peers for outbound network group exclusion.
| * | | | | | | | | Do not consider inbound peers for outbound network group exclusion.Gregory Maxwell2012-07-011-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bitcoin will not make an outbound connection to a network group (/16 for IPv4) that it is already connected to. This means that if an attacker wants good odds of capturing all a nodes outbound connections he must have hosts on a a large number of distinct groups. Previously both inbound and outbound connections were used to feed this exclusion. The use of inbound connections, which can be controlled by the attacker, actually has the potential of making sibyl attacks _easier_: An attacker can start up hosts in groups which house many honest nodes and make outbound connections to the victim to exclude big swaths of honest nodes. Because the attacker chooses to make the outbound connection he can always beat out honest nodes for the consumption of inbound slots. At _best_ the old behavior increases attacker costs by a single group (e.g. one distinct group to use to fill up all your inbound slots), but at worst it allows the attacker to select whole networks you won't connect to. This commit makes the nodes use only outbound links to exclude network groups for outbound connections. Fancier things could be done, like weaker exclusion for inbound groups... but simplicity is good and I don't believe more complexity is currently needed.
* | | | | | | | | | Fix signed/unsigned warnings in {script,serialize}.h (fixes #1541)Matt Corallo2012-07-022-4/+7
| |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Merge pull request #1545 from TheBlueMatt/diffsendbufferJeff Garzik2012-07-013-4/+2
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | Minor send buffer changes
| * | | | | | | | Change default send buffer to 1Mb.Matt Corallo2012-07-012-2/+2
| | | | | | | | |
| * | | | | | | | Remove useless high-volume printf (fixes #1544).Matt Corallo2012-07-011-2/+0
| | | | | | | | |
* | | | | | | | | RPC getpeerinfo: s/height/startingheight/ for returned nStartingHeight valueJeff Garzik2012-06-301-1/+1
|/ / / / / / / /
* | | | | | | | Merge pull request #1540 from fanquake/masterJeff Garzik2012-06-304-4/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fix a Couple Typos
| * | | | | | | | Fix a couple more typosfanquake2012-06-304-4/+4
| | | | | | | | |
* | | | | | | | | Fix a typo in TransactionDesccardpuncher2012-06-301-1/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #1531 from jgarzik/peerinfoGavin Andresen2012-06-298-12/+110
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode data
| * | | | | | | | | RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode dataJeff Garzik2012-06-294-1/+84
| | | | | | | | | |
| * | | | | | | | | Create new rpcnet module, and move 'getconnectioncount' RPC to itJeff Garzik2012-06-286-11/+26
| | | | | | | | | |
* | | | | | | | | | Merge pull request #1537 from Diapolo/fix_awesome_typoJeff Garzik2012-06-291-1/+1
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | | fix an awesome typo in OptionsDialog ^^
| * | | | | | | | | fix a typo in OptionsDialogPhilip Kaufmann2012-06-301-1/+1
| |/ / / / / / / /
* / / / / / / / / Fix a few typosfanquake2012-06-295-8/+8
|/ / / / / / / /
* | | | | | | | Merge branch 'patch-5' of https://github.com/xanatos/bitcoinGavin Andresen2012-06-281-1/+1
|\ \ \ \ \ \ \ \
| * | | | | | | | Changed a comment about a QVariant typexanatos2012-06-231-1/+1
| | | | | | | | |
* | | | | | | | | Merge branch 'patch-3' of https://github.com/xanatos/bitcoinGavin Andresen2012-06-281-3/+3
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Small fix to rpc_testsxanatos2012-06-221-3/+3
| | | | | | | | | |
* | | | | | | | | | Fix build error.Matt Corallo2012-06-281-1/+1
| | | | | | | | | |
* | | | | | | | | | Lock vnThreadsRunning[THREAD_RPCHANDLER].Matt Corallo2012-06-281-3/+14
| | | | | | | | | |
* | | | | | | | | | Use a rpc-specific queue to tell asio connections to shutdown.Matt Corallo2012-06-281-2/+5
| | | | | | | | | |
* | | | | | | | | | Revert "*Always* send a shutdown signal to enable custom shutdown actions"Matt Corallo2012-06-282-7/+7
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 896899e0d66e25f6549a92749d237c8a87b12f08.
* | | | | | | | | Merge pull request #1511 from jgarzik/quieten2Jeff Garzik2012-06-271-1/+5
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / |/| | | | | | | | Quieten 'getdata' P2P message output
| * | | | | | | | Quieten 'getdata' P2P message outputJeff Garzik2012-06-231-1/+5
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Output one message per getdata, not one message per 'inv' entry.