aboutsummaryrefslogtreecommitdiff
path: root/src/rpcblockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Moved CBlock::ReadFromDisk out of CBlock to functions ReadBlockFromDisk in ↵Eric Lombrozo2013-06-231-1/+1
| | | | main.h
* RPC: add 'verifychain', to verify chain database at runtimeJeff Garzik2013-06-191-0/+16
|
* Merge pull request #2747 from luke-jr/getblock_verbose0Jeff Garzik2013-06-101-3/+17
|\ | | | | Add verbose flag to getblock RPC so it is possible to get hex dumps of blocks
| * RPC: getblock(): Accept 2nd "verbose" parameter, similar to ↵Luke Dashjr2013-06-071-3/+17
| | | | | | | | getrawtransaction, but defaulting to 1 for backward compatibility
* | Make FindBlockByHeight constant-time.Pieter Wuille2013-05-121-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Remove the pnext pointer in CBlockIndex, and replace it with a vBlockIndexByHeight vector (no effect on memory usage). pnext can now be replaced by vBlockIndexByHeight[nHeight+1], but FindBlockByHeight becomes constant-time. This also means the entire mapBlockIndex structure and the block index entries in it become purely blocktree-related data, and independent from the currently active chain, potentially allowing them to be protected by separate mutexes in the future.
* | Improve gettxoutsetinfo commandPieter Wuille2013-05-011-1/+4
| | | | | | | | | | | | | | | | | | * Bugfix: output the correct best block hash (during IBD, it can differ from the actual current best block) * Add height to output * Add hash_serialized, which is a hash of the entire UTXO state. Can be useful to compare two nodes. * Add total_amount, the sum of all UTXOs' values.
* | Make output of gettxout RPC more consistentPieter Wuille2013-01-041-3/+4
| | | | | | | | | | * Report "value" in BTC, rather than "amount" in satoshis * Use ScriptPubKeyToJSON to report script data
* | Split off CBlockHeader from CBlockPieter Wuille2012-11-161-1/+1
| | | | | | | | | | Cleaner and removes the need for the application-specific flags in serialize.h.
* | Add gettxout and gettxoutsetinfo RPCsPieter Wuille2012-10-201-0/+62
|/
* Document RPC error codesWladimir J. van der Laan2012-10-041-1/+1
| | | | Replace all "magic values" in RPCError(...) by constants.
* RPC, cosmetic: move more RPC code to new rpcblockchain.cpp moduleJeff Garzik2012-08-211-0/+165