aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-07-05Merge pull request #1304 from rebroad/ShowBlockTimestampJeff Garzik
Show block timestamp
2012-07-05bitcoinrpc.cpp: Removed outdated commentJeff Garzik
Fixes #1373
2012-07-05Merge branch 'uri' of https://github.com/TheBlueMatt/bitcoinGavin Andresen
2012-07-05Use unsigned ints to fix signed/unsigned warningsGavin Andresen
2012-07-05Merge pull request #1554 from jgarzik/dup-gethashJeff Garzik
Remove duplicate GetHash() in ConnectBlock
2012-07-05Implement raw transaction RPC callsGavin Andresen
Implement listunspent / getrawtransaction / createrawtransaction / signrawtransaction, to support creation and signing-on-multiple-device multisignature transactions.
2012-07-05RPCTypeCheck method to make type-checking JSON Arrays easier.Gavin Andresen
2012-07-05Refactor: SignSignature/VerifyScriptGavin Andresen
Minor refactor to support signrawtx signing/verifying transactions when it might only have the previous transaction's txid and txOut.
2012-07-05Rework gettransaction / getblock RPC callsGavin Andresen
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).
2012-07-04Merge pull request #1555 from TheBlueMatt/warningsJeff Garzik
Fix remaining compile warnings.
2012-07-04Merge branch 'buildupdates' of https://github.com/TheBlueMatt/bitcoinGavin Andresen
2012-07-04Fix remaining warnings.Matt Corallo
2012-07-04CTxMemPool: eliminate redundant lock, GetHash() callJeff Garzik
::addUnchecked()'s only caller already takes the necessary lock, and has already calculated the TX's hash.
2012-07-04Remove duplicate GetHash() in ConnectBlockMatt Corallo
2012-07-03RPC: add support for JSON-RPC 2.0-style request batchingJeff Garzik
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.
2012-07-03RPC: break out high level JSON-RPC req/resp into their own functionsJeff Garzik
This prepares for JSON-RPC 2.0 batches.
2012-07-03Merge pull request #1546 from gmaxwell/allowsamenetinboundJeff Garzik
Do not consider inbound peers for outbound network group exclusion.
2012-07-03Work around a distcc bug where -MMD output isn't copied.Matt Corallo
2012-07-02Fix signed/unsigned warnings in {script,serialize}.h (fixes #1541)Matt Corallo
2012-07-01Merge pull request #1545 from TheBlueMatt/diffsendbufferJeff Garzik
Minor send buffer changes
2012-07-01Do not consider inbound peers for outbound network group exclusion.Gregory Maxwell
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.
2012-06-30RPC getpeerinfo: s/height/startingheight/ for returned nStartingHeight valueJeff Garzik
2012-07-01Change default send buffer to 1Mb.Matt Corallo
2012-07-01Remove useless high-volume printf (fixes #1544).Matt Corallo
2012-06-30Merge pull request #1540 from fanquake/masterJeff Garzik
Fix a Couple Typos
2012-06-30Fix a couple more typosfanquake
2012-06-30Fix a typo in TransactionDesccardpuncher
2012-06-29Merge pull request #1531 from jgarzik/peerinfoGavin Andresen
RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode data
2012-06-29Merge pull request #1537 from Diapolo/fix_awesome_typoJeff Garzik
fix an awesome typo in OptionsDialog ^^
2012-06-30fix a typo in OptionsDialogPhilip Kaufmann
2012-06-29RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode dataJeff Garzik
2012-06-29Fix a few typosfanquake
2012-06-28Create new rpcnet module, and move 'getconnectioncount' RPC to itJeff Garzik
2012-06-28Merge branch 'patch-5' of https://github.com/xanatos/bitcoinGavin Andresen
2012-06-28Merge branch 'patch-3' of https://github.com/xanatos/bitcoinGavin Andresen
2012-06-28Fix build error.Matt Corallo
2012-06-28Lock vnThreadsRunning[THREAD_RPCHANDLER].Matt Corallo
2012-06-28Use a rpc-specific queue to tell asio connections to shutdown.Matt Corallo
2012-06-28Revert "*Always* send a shutdown signal to enable custom shutdown actions"Matt Corallo
This reverts commit 896899e0d66e25f6549a92749d237c8a87b12f08.
2012-06-27Merge pull request #1511 from jgarzik/quieten2Jeff Garzik
Quieten 'getdata' P2P message output
2012-06-27Merge pull request #1347 from rebroad/FixAlreadyAskedForPieter Wuille
mapAlreadyAskedFor gets additions when AlreadyHave()
2012-06-27Merge pull request #973 from TheBlueMatt/diffsendbufferPieter Wuille
Stop processing messages on full send buffer and dont disconnect.
2012-06-27Merge pull request #457 from muggenhor/async-ipv6-rpcPieter Wuille
IPv6 RPC using asynchronously accepted connections
2012-06-27Stop processing messages on full send buffer and dont disconnect.Matt Corallo
Also decrease default send/receive buffer sizes from 10 to 5 mb as this patch makes it easy for a node to fill both instead of only send.
2012-06-26GUI: change language selection formatPhilip Kaufmann
- display as "language - country (locale name)", when locale name consists of 2 parts - display as "language (locale name)", when locale name consists of 1 part
2012-06-25Merge pull request #1501 from fanquake/masterWladimir J. van der Laan
QT to Qt
2012-06-25Checkpoint at block 185333 (and remove a couple of intermediate checkpoints)Gavin Andresen
2012-06-25Add Bitcoin dev CopyrightMichael Ford
2012-06-25Update commentsMichael Ford
2012-06-24fix a comment to correctly use -upgradewalletPhilip Kaufmann