Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Index Num decorator_list Assign NameStore Str Assign NameStore BinOpMult Call NameLoad Num Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr Call NameLoad keyword Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareEq NameLoad Num body Return NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore BinOpFloorDiv BinOpMult BinOpLShift Num Num Num Num Assign NameStore ListLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr While CompareGtE NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad AugAssignFloorDiv NameStore Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr While NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num Num body Break AugAssignMult NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpMod Str TupleLoad NameLoad BinOpMod NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore TupleLoad NameLoad BinOpMod NameLoad NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension NameStore Call NameLoad Num NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num body If UnaryOpNot NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr body AugAssignMult AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr BinOpMod NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Num Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr GeneratorExp TupleLoad SubscriptLoad NameLoad Index Num NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return ListComp Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad While CompareGtE NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str TupleLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num If CompareEq AttributeLoad NameLoad attr NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad AugAssignFloorDiv NameStore Num Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A os N/A random N/A sqlite3 N/A struct N/A database N/A keys N/A coins N/A protocol N/A script N/A util N/A __all__ N/A Database get_q N/A N/A txid N/A N/A N/A Compute the index q from a txid. N/A N/A N/A N/A struct unpack >I N/A txid N/A 4 N/A 0 N/A N/A _KEY_DUP PRIMARY KEY must be unique N/A _0 N/A N/A chr 0 32 Transaction N/A object N/A __init__ N/A N/A self database row _transaction N/A None N/A N/A keys N/A n N/A N/A n t i N/A database Columns N/A N/A self _database database N/A N/A self _data N/A dict N/A zip keys row N/A N/A self _po_cache N/A dict N/A N/A self _transaction _transaction N/A N/A version N/A property N/A N/A N/A s N/A N/A N/A s txn version N/A inputs N/A property N/A N/A N/A s N/A N/A N/A s txn tx_in N/A outputs N/A property N/A N/A N/A s N/A N/A N/A s txn tx_out N/A lock_time N/A property N/A N/A N/A s N/A N/A N/A s txn lock_time N/A hash N/A property N/A N/A N/A s N/A N/A N/A s txn hash N/A index N/A property N/A N/A N/A s N/A N/A N/A keys get_txck_index N/A s _txck __getstate__ N/A N/A self N/A N/A N/A N/A N/A self _po_cache N/A dict txn N/A str N/A N/A self _data N/A txn txck N/A N/A self _data N/A txck N/A __setstate__ N/A N/A self state N/A N/A N/A N/A self _database None N/A N/A N/A self _po_cache N/A self _data state N/A N/A self _transaction None N/A cache_previous_outputs N/A N/A self N/A N/A N/A i N/A xrange 0 N/A len N/A self inputs N/A N/A N/A N/A self previous_transaction i N/A previous_transaction N/A N/A self index N/A N/A N/A Returns the previous output's transaction for the input at index. N/A N/A N/A N/A self index 0 N/A index 0 N/A N/A None N/A N/A index N/A self _po_cache N/A N/A po_hash N/A N/A N/A N/A self inputs N/A index previous_output hash N/A previous_txn N/A N/A N/A self _database get po_hash N/A N/A previous_txn None N/A N/A N/A KeyError N/A missing transaction: %s po_hash N/A N/A N/A self _po_cache N/A index previous_txn N/A N/A N/A self _po_cache N/A index N/A previous_output N/A N/A self index N/A N/A N/A Returns the previous output for the input at index. N/A previous_txn N/A N/A self previous_transaction index N/A N/A previous_txn None N/A N/A None N/A po N/A N/A N/A self inputs N/A index previous_output N/A N/A N/A previous_txn outputs N/A N/A po index N/A __str__ N/A N/A self N/A N/A N/A N/A <Transaction hash=0x%s> N/A N/A N/A self hash encode hex N/A N/A _txck N/A property N/A N/A N/A s N/A N/A N/A s _data N/A txck N/A _blockid N/A property N/A N/A N/A s N/A N/A N/A keys get_txck_blockid N/A s _txck _previous_uock N/A N/A self index N/A N/A N/A previous_txn N/A N/A self previous_transaction index N/A N/A previous_txn None N/A N/A None N/A po N/A N/A N/A self inputs N/A index previous_output N/A N/A N/A keys get_uock N/A previous_txn _txck N/A po index N/A txn N/A N/A self N/A N/A N/A The raw transaction object. N/A N/A N/A self _transaction None N/A N/A N/A vl N/A self _transaction N/A N/A N/A protocol Txn parse N/A self txn_binary N/A N/A self _transaction N/A property N/A txn_binary N/A property N/A N/A N/A s N/A N/A str N/A N/A s _data N/A txn N/A Database N/A N/A database Database N/A N/A MINIMUM_N 4 N/A TARGET_SIZE N/A N/A N/A 1 30 7 4 N/A Columns N/A N/A txck integer primary key False N/A txid_hint integer True N/A txn blob False N/A Name txns __init__ N/A N/A self data_dir coin N/A None N/A coins Bitcoin N/A N/A N/A N/A N/A database Database __init__ self data_dir coin N/A N/A self _connections N/A dict N/A N/A self _N N/A N/A self load_n N/A n N/A self _N N/A N/A n N/A self MINIMUM_N N/A N/A N/A N/A self get_connection n 0 True N/A n 2 N/A load_n N/A N/A self N/A N/A N/A Determine the highest N for a database directory. N/A n N/A self MINIMUM_N N/A True N/A N/A N/A N/A N/A N/A os path isfile N/A N/A self get_filename N/A N/A self get_suffix N/A n 2 0 N/A N/A N/A n 2 N/A n N/A get_suffix N/A N/A self n q N/A N/A N/A N/A -%03d-%03d N/A n N/A q n N/A get_connection N/A N/A self n q allow_create N/A False N/A N/A Get a connection for the database file at (n, q % n). First a
           connection cache is searched. Then the disk is checked for new
           files, in which case every file at level n is loaded.

           If allow_create and the database file does not exist, all
           partitions at the level n are created. N/A loc N/A n N/A q n N/A N/A loc N/A self _connections N/A N/A locs N/A N/A n i N/A i N/A xrange 0 n N/A N/A N/A N/A N/A os path isfile N/A N/A self get_filename N/A N/A self get_suffix n 0 N/A N/A N/A allow_create N/A N/A None N/A N/A N/A locs reverse N/A l locs N/A N/A suffix N/A N/A self get_suffix N/A l N/A 0 N/A l N/A 1 N/A N/A N/A self _connections N/A l N/A N/A N/A database Database get_connection self suffix N/A N/A N/A self _connections N/A loc N/A check_size N/A N/A self N/A N/A N/A Checks the sizes of the database level, increasing the size as needed. N/A suffix N/A N/A self get_suffix N/A self _N N/A N/A random randint 0 N/A N/A self _N 1 N/A filename N/A N/A self get_filename suffix N/A N/A N/A N/A N/A os path getsize filename N/A self TARGET_SIZE N/A N/A N/A self _N 2 N/A N/A N/A self get_connection N/A self _N 0 True N/A add N/A N/A self block transactions N/A N/A N/A Add transactions to the database. N/A N/A N/A self check_size N/A N/A N/A block _check_merkle_root N/A N/A util get_merkle_root transactions N/A connections N/A dict N/A block_txns N/A N/A N/A txn_index txn N/A enumerate transactions N/A N/A txid N/A txn hash N/A q N/A get_q txid N/A connection N/A N/A self get_connection N/A self _N q N/A N/A connections N/A N/A N/A self _N N/A q N/A self _N connection N/A cursor N/A N/A connection cursor N/A txck N/A N/A keys get_txck N/A block _blockid txn_index N/A row N/A txck N/A N/A keys get_hint txid N/A buffer N/A N/A txn binary N/A N/A N/A N/A N/A cursor execute N/A self sql_insert row N/A N/A N/A N/A sqlite3 IntegrityError N/A e N/A N/A N/A N/A e message _KEY_DUP N/A N/A e N/A N/A N/A block_txns append N/A Transaction self row txn N/A connection N/A N/A connections values N/A N/A N/A N/A connection commit N/A N/A N/A block _update_transactions block_txns N/A block N/A _get N/A N/A self txck N/A N/A N/A N/A connection N/A N/A N/A self _connections values N/A N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute N/A N/A self sql_select  where txck = ? N/A txck N/A row N/A N/A cursor fetchone N/A row N/A N/A N/A Transaction self row N/A None N/A _get_transactions N/A N/A self blockid N/A N/A N/A Find all transactions for a block, ordered by transaction index. Internal use. N/A lo N/A N/A keys get_txck blockid 0 N/A hi N/A N/A keys get_txck N/A blockid 1 0 N/A txns N/A N/A connection N/A N/A N/A self _connections values N/A N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute N/A N/A self sql_select  where txck >= ? and txck < ? N/A lo hi N/A N/A N/A txns extend N/A N/A N/A r N/A 0 r N/A r N/A N/A cursor fetchall N/A N/A N/A txns sort N/A N/A N/A Transaction self row N/A N/A txck row txns N/A get N/A N/A self txid default N/A None N/A N/A Get a transaction by its txid. N/A txid_hint N/A N/A keys get_hint txid N/A n N/A self _N N/A q N/A get_q txid N/A N/A n N/A self MINIMUM_N N/A N/A connection N/A N/A self get_connection n q N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute N/A N/A self sql_select  where txid_hint = ? N/A txid_hint N/A row N/A N/A cursor fetchall N/A N/A N/A vl txn N/A N/A N/A protocol Txn parse N/A row N/A 2 N/A N/A N/A txn hash txid N/A N/A N/A Transaction self row txn N/A n 2 N/A new_n N/A N/A self load_n N/A N/A new_n N/A self _N N/A N/A N/A self _N new_n N/A N/A N/A self _get txid N/A default N/A N/A