aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1641 from jgarzik/mempoolJeff Garzik2012-08-201-0/+1
|\ | | | | Add 'mempool' P2P command, and extend 'getdata' behavior
| * Add 'mempool' P2P command, and extend 'getdata' behaviorJeff Garzik2012-07-311-0/+1
| | | | | | | | to permit downloading of mempool transactions from the remote peer.
* | Merge pull request #1612 from luke-jr/opti_getblkhashGregory Maxwell2012-08-011-0/+1
|\ \ | | | | | | Optimize JSON-RPC getblockhash
| * | Optimize JSON-RPC getblockhashLuke Dashjr2012-08-011-0/+1
| | | | | | | | | | | | | | | - If the height is in the first half, start at the genesis block and go up, rather than at the top - Cache the last lookup and use it as a reference point if it's close to the next request, to make linear lookups always fast
* | | Bugfix: Use standard BTC unit in commentsLuke Dashjr2012-08-011-1/+1
| |/ |/|
* | Tests for CreateNewBlockLuke Dashjr2012-07-121-0/+1
| |
* | Merge branch 'checknewblock_0.6.0' into checknewblockLuke Dashjr2012-07-111-2/+2
|\ \ | |/ |/| | | | | Conflicts: src/main.cpp
| * CreateNewBlock: Check that the produced CBlock is acceptable (except for ↵Luke Dashjr2012-05-271-2/+2
| | | | | | | | | | | | proof-of-work and merkletree, since those need to be provided later) This throws an exception from CreateNewBlock otherwise, which is not safe without #1245!
* | Treat non-version-1 transactions as non-standardGavin Andresen2012-07-061-2/+4
| | | | | | | | | | | | Adds CBlock::CURRENT_VERSION and CTransaction::CURRENT_VERSION constants, and makes non-CURRENT_VERSION transactions nonstandard. This will help make future upgrades smoother.
* | CTxMemPool: eliminate redundant lock, GetHash() callJeff Garzik2012-07-041-1/+1
| | | | | | | | | | ::addUnchecked()'s only caller already takes the necessary lock, and has already calculated the TX's hash.
* | RPC: add 'getrawmempool', listing all transaction ids in memory poolJeff Garzik2012-06-221-0/+1
| |
* | JSON-RPC: Add 'sendrawtx' op, for sending pre-built TX's to networkJeff Garzik2012-05-231-0/+1
| |
* | Prevent crashes due to missing or corrupted blk????.dat recordsJeff Garzik2012-05-221-2/+13
| | | | | | | | | | | | In LoadExternalBlockFile(), errors are already caught... silently. Add a warning message, even though we do not abort the program due to load error.
* | Merge pull request #1354 from fanquake/masterPieter Wuille2012-05-201-1/+1
|\ \ | | | | | | Update Header Licenses
| * | Update License in File HeadersFordy2012-05-181-1/+1
| | | | | | | | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
* | | Fine-grained UI updatesWladimir J. van der Laan2012-05-201-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gets rid of `MainFrameRepaint` in favor of specific update functions that tell the UI exactly what changed. This improves the efficiency of various handlers. Also fixes problems with mined transactions not showing up until restart. The following notifications were added: - `NotifyBlocksChanged`: Block chain changed - `NotifyKeyStoreStatusChanged`: Wallet status (encrypted, locked) changed. - `NotifyAddressBookChanged`: Address book entry changed. - `NotifyTransactionChanged`: Wallet transaction added, removed or updated. - `NotifyNumConnectionsChanged`: Number of connections changed. - `NotifyAlertChanged`: New, updated or cancelled alert. As this finally makes it possible for the UI to know when a new alert arrived, it can be shown as OS notification. These notifications could also be useful for RPC clients. However, currently, they are ignored in bitcoind (in noui.cpp). Also brings back polling with timer for numBlocks in ClientModel. This value updates so frequently during initial download that the number of signals clogs the UI thread and causes heavy CPU usage. And after initial block download, the value changes so rarely that a delay of half a second until the UI updates is unnoticable.
* | | Merge pull request #1296 from Diapolo/CheckDiskSpaceGavin Andresen2012-05-191-2/+2
|\ \ \ | |/ / |/| | make CheckDiskSpace() use 50 * 1024 * 1024 Bytes
| * | make CheckDiskSpace() use a global static const uint64 for checking required ↵Philip Kaufmann2012-05-141-2/+2
| | | | | | | | | | | | disk space and remove 2 ugly spaces from a message string
* | | fix RenameOver() and FileCommit() functions, to not generate compilation errorsPhilip Kaufmann2012-05-171-4/+0
| | |
* | | Merge pull request #1316 from jgarzik/dead-codeJeff Garzik2012-05-171-15/+0
|\ \ \ | | | | | | | | Remove dead code: CTxDB::EraseBlockIndex(), CBlockIndex::EraseBlockFromDisk()
| * | | Remove dead code: CTxDB::EraseBlockIndex(), CBlockIndex::EraseBlockFromDisk()Jeff Garzik2012-05-151-15/+0
| |/ /
* / / Add new utility functions FileCommit(), RenameOver()Jeff Garzik2012-05-161-7/+1
|/ /
* | Split synchronization mechanisms from util.{h,cpp}Pieter Wuille2012-05-111-0/+1
| |
* | Clean up warningsPieter Wuille2012-05-091-1/+1
| | | | | | | | | | | | * Use -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameters * Remove xCXXFLAGS usage in makefile.unix * Fix several recent and older sign-compare warnings
* | Merge pull request #1180 from jgarzik/sign-compareJeff Garzik2012-05-081-6/+6
|\ \ | | | | | | Fix final sign comparison warnings
| * | CDiskTxPos, CInPoint, COutPoint: cast null value (-1) to unsigned intJeff Garzik2012-05-011-6/+6
| | | | | | | | | | | | to eliminate signed/unsigned comparison warnings
* | | Merge pull request #841 from sipa/getalltransactionsGregory Maxwell2012-05-081-1/+1
|\ \ \ | | | | | | | | gettransaction RPC for non-wallet transactions
| * | | gettransaction RPC for non-wallet transactionsPieter Wuille2012-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Works for wallet transactions, memory-pool transaction and block chain transactions. Available for all: * txid * version * locktime * size * coinbase/inputs/outputs * confirmations Available only for wallet transactions: * amount * fee * details * blockindex Available for wallet transactions and block chain transactions: * blockhash * time
* | | | Merge pull request #883 from sipa/loadblockGregory Maxwell2012-05-081-0/+2
|\ \ \ \ | |_|/ / |/| | | Add -loadblock to load from an external blk000?.dat file
| * | | -loadblock to load from an external blk000?.dat filePieter Wuille2012-04-221-0/+2
| | | |
* | | | CBlock::WriteToDisk() properly checks ftell(3) for error returnJeff Garzik2012-04-231-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Rather than storing ftell(3)'s return value -- a long -- in an unsigned int, we store and check a properly typed temp. Then, assured a non-negative value, we store in nBlockPosRet.
* | | | Add casts for unavoidable signed/unsigned comparisonsJeff Garzik2012-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | At these code sites, it is preferable to cast rather than change a variable's type.
* | | | SigOp and orphan-tx constants and counts are always unsigned.Jeff Garzik2012-04-231-4/+4
|/ / / | | | | | | | | | Fixes several sign-comparison warnings.
* / / change type of various bare chars to bool that are only used as bool (and ↵Wladimir J. van der Laan2012-04-211-1/+1
|/ / | | | | | | never serialized)
* | Merge remote-tracking branch 'jgarzik/mempool'Pieter Wuille2012-04-171-4/+31
|\ \
| * | CTxMemPool: add helper methods, to reduce global mempool.mapTx accessesJeff Garzik2012-04-151-0/+10
| | |
| * | CTxMemPool: encapsulate AcceptToMemoryPoolJeff Garzik2012-04-151-0/+2
| | |
| * | CTxMemPool: encapsulate AddToMemoryPoolUnchecked(), RemoveFromMemoryPool(),Jeff Garzik2012-04-151-4/+11
| | | | | | | | | | | | and nPooledTx
| * | New class CTxMemPool, encapsulating TX memory pool data membersJeff Garzik2012-04-151-0/+8
| | |
* | | Further reduce header dependenciesPieter Wuille2012-04-171-8/+6
| | | | | | | | | | | | | | | | | | | | | This commit removes the dependency of serialize.h on PROTOCOL_VERSION, and makes this parameter required instead of implicit. This is much saner, as it makes the places where changing a version number can have an influence obvious.
* | | Move CWalletDB code to new walletdb module.Jeff Garzik2012-04-171-3/+1
| | | | | | | | | | | | | | | In addition to standard code separation, this change opens the door to fixing several include inter-dependencies.
* | | Remove headers.hPieter Wuille2012-04-171-3/+0
| | |
* | | Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik2012-04-151-6/+6
|/ / | | | | | | | | foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
* | fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]Wladimir J. van der Laan2012-04-151-0/+2
| |
* | Database micro-optimization for "tx" network messageJeff Garzik2012-04-131-1/+0
| | | | | | | | | | | | | | | | Open database once per "tx" message, rather than multiple times, in the case of orphan transaction presence. As a side effect, a now-unused CTransaction::AcceptToMemoryPool() variant is removed.
* | Build identification stringsPieter Wuille2012-04-101-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All client version information is moved to version.cpp, which optionally (-DHAVE_BUILD_INFO) includes build.h. build.h is automatically generated on supporting platforms via contrib/genbuild.sh, using git describe. The git export-subst attribute is used to put the commit id statically in version.cpp inside generated archives, and this value is used if no build.h is present. The gitian descriptors are modified to use git archive instead of a copy, to create the src/ directory in the output. This way, src/src/version.cpp will contain the static commit id. To prevent gitian builds from getting the "-dirty" marker in their git-describe generated identifiers, no touching of files or running sed on the makefile is performed anymore. This does not seem to influence determinism.
* | VC2010 compile fixesWladimir J. van der Laan2012-04-031-2/+6
| |
* | Bump version to 0.6.0.99 for 0.6.1 merge windowGavin Andresen2012-04-021-1/+1
|/
* Bump version to 0.6.0rc6Gavin Andresen2012-03-291-1/+1
|
* Update version to 60005 (0.6.0rc5)v0.6.0rc5Gavin Andresen2012-03-261-1/+1
|