Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-05-03 | Define dust transaction outputs, and make them non-standard | Gavin Andresen | |
2013-04-03 | Fix signed/unsigned comparison warnings | Gavin Andresen | |
2012-11-15 | Introduce script verification flags | Pieter Wuille | |
These flags select features to be enabled/disabled during script evaluation/checking, instead of several booleans passed along. Currently these flags are defined: * SCRIPT_VERIFY_P2SH: enable BIP16-style subscript evaluation * SCRIPT_VERIFY_STRICTENC: enforce strict adherence to pubkey/sig encoding standards. | |||
2012-10-20 | Ultraprune | Pieter Wuille | |
This switches bitcoin's transaction/block verification logic to use a "coin database", which contains all unredeemed transaction output scripts, amounts and heights. The name ultraprune comes from the fact that instead of a full transaction index, we only (need to) keep an index with unspent outputs. For now, the blocks themselves are kept as usual, although they are only necessary for serving, rescanning and reorganizing. The basic datastructures are CCoins (representing the coins of a single transaction), and CCoinsView (representing a state of the coins database). There are several implementations for CCoinsView. A dummy, one backed by the coins database (coins.dat), one backed by the memory pool, and one that adds a cache on top of it. FetchInputs, ConnectInputs, ConnectBlock, DisconnectBlock, ... now operate on a generic CCoinsView. The block switching logic now builds a single cached CCoinsView with changes to be committed to the database before any changes are made. This means no uncommitted changes are ever read from the database, and should ease the transition to another database layer which does not support transactions (but does support atomic writes), like LevelDB. For the getrawtransaction() RPC call, access to a txid-to-disk index would be preferable. As this index is not necessary or even useful for any other part of the implementation, it is not provided. Instead, getrawtransaction() uses the coin database to find the block height, and then scans that block to find the requested transaction. This is slow, but should suffice for debug purposes. | |||
2012-09-21 | Check for canonical public keys and signatures | Pieter Wuille | |
Only enabled inside tests for now. | |||
2012-08-01 | Bugfix: Fix a variety of misspellings | Luke Dashjr | |
2012-05-24 | Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddress | Pieter Wuille | |
This introduces internal types: * CKeyID: reference (hash160) of a key * CScriptID: reference (hash160) of a script * CTxDestination: a boost::variant of the former two CBitcoinAddress is retrofitted to be a Base58 encoding of a CTxDestination. This allows all internal code to only use the internal types, and only have RPC and GUI depend on the base58 code. Furthermore, the header dependencies are a lot saner now. base58.h is at the top (right below rpc and gui) instead of at the bottom. For the rest: wallet -> script -> keystore -> key. Only keystore still requires a forward declaration of CScript. Solving that would require splitting script into two layers. | |||
2012-02-20 | Fix tests after 38067c18 | Pieter Wuille | |
2012-02-07 | Merge branch 'standardScriptSigs' of github.com:gavinandresen/bitcoin-git | Gavin Andresen | |
2012-01-20 | Simplify counting of P2SH sigops to match BIP 16 (thanks to Matt Corallo for ↵ | Gavin Andresen | |
prompting this). This also removes an un-needed sigops-per-byte check when accepting transactions to the memory pool (un-needed assuming only standard transactions are being accepted). And it only counts P2SH sigops after the switchover date. | |||
2012-01-19 | Make transactions with extra data in their scriptSig's non-standard. | Gavin Andresen | |
2012-01-13 | Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). | Gavin Andresen | |