Module ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str TupleLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr Str TupleLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If BoolOpOr CompareNotIn NameLoad NameLoad UnaryOpNot SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Return NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return CompareNotEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad NameLoad body Return NameLoad If CompareLt BinOpSub Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return CompareNotEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return CompareEq NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If NameLoad body Return NameLoad orelse If NameLoad body Return NameLoad orelse Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad orelse If CompareEq NameLoad Num body Return NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If BoolOpOr NameLoad NameLoad body Return NameLoad orelse Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If BinOpBitAnd BinOpRShift NameLoad NameLoad Num body Assign NameStore Call NameLoad BinOpAdd Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad BinOpAdd NameLoad Call NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad If CompareNotEq Call AttributeLoad NameLoad attr Str NameLoad body Return NameLoad With AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareLt NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return BinOpAdd BinOpSub AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Return NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad If CompareEq NameLoad Num body Return NameLoad Return NameLoad decorator_list decorator_list
N/A time time urllib2 HTTPError N/A threading N/A os pycoin.encoding double_sha256 coloredcoinlib.store DataStore DataStoreConnection PersistentDictStore unwrap1 ngcccbase.services.blockchain BlockchainInfoInterface txcons RawTxSpec blockchain VerifiedBlockchainState N/A TX_STATUS_UNKNOWN 0 N/A TX_STATUS_UNCONFIRMED 1 N/A TX_STATUS_CONFIRMED 2 N/A TX_STATUS_INVALID 3 N/A create_transaction_table CREATE TABLE tx_data (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    txhash TEXT,
    data TEXT,
    status INTEGER,
    block_height INTEGER
);
 TxDataStore N/A DataStore N/A __init__ N/A N/A self conn N/A N/A N/A N/A N/A N/A super TxDataStore self __init__ conn N/A N/A N/A N/A self table_exists tx_data N/A N/A N/A N/A self execute create_transaction_table N/A N/A N/A self execute CREATE UNIQUE INDEX tx_data_txhash ON tx_data (txhash) N/A N/A N/A N/A self column_exists tx_data block_height N/A N/A N/A N/A self execute ALTER TABLE tx_data ADD COLUMN block_height INTEGER N/A purge_tx_data N/A N/A self N/A N/A N/A N/A N/A self execute DELETE FROM tx_data N/A add_tx N/A N/A self txhash txdata status N/A TX_STATUS_UNKNOWN N/A N/A N/A N/A self execute INSERT INTO tx_data (txhash, data, status) VALUES (?, ?, ?) N/A txhash txdata status N/A set_tx_status N/A N/A self txhash status N/A N/A N/A N/A N/A self execute UPDATE tx_data SET status = ? WHERE txhash = ? N/A status txhash N/A get_tx_status N/A N/A self txhash N/A N/A N/A N/A unwrap1 N/A N/A N/A N/A self execute SELECT status FROM tx_data WHERE txhash = ? N/A txhash fetchone N/A get_tx_by_hash N/A N/A self txhash N/A N/A N/A N/A N/A N/A N/A self execute SELECT * FROM tx_data WHERE txhash = ? N/A txhash fetchone N/A get_all_tx_hashes N/A N/A self N/A N/A N/A N/A map unwrap1 N/A N/A N/A N/A self execute SELECT txhash FROM tx_data fetchall N/A set_block_height N/A N/A self txhash height N/A N/A N/A N/A N/A self execute UPDATE tx_data SET block_height = ? WHERE txhash = ? N/A height txhash N/A reset_from_height N/A N/A self height N/A N/A N/A N/A N/A self execute UPDATE tx_data SET status = 0 WHERE (block_height >= ?) OR (block_height IS NULL) N/A height N/A N/A BaseTxDb N/A object N/A __init__ N/A N/A self model config N/A N/A N/A N/A self model model N/A N/A self store N/A TxDataStore N/A N/A N/A self model store_conn conn N/A N/A self last_status_check N/A dict N/A N/A self recheck_interval 60 N/A N/A self bs N/A N/A N/A self model get_blockchain_state N/A purge_tx_db N/A N/A self N/A N/A N/A N/A N/A N/A self store purge_tx_data N/A get_all_tx_hashes N/A N/A self N/A N/A N/A N/A N/A N/A self store get_all_tx_hashes N/A get_tx_by_hash N/A N/A self txhash N/A N/A N/A N/A N/A N/A self store get_tx_by_hash txhash N/A update_tx_block_height N/A N/A self txhash status N/A N/A N/A N/A status TX_STATUS_CONFIRMED N/A N/A N/A N/A N/A block_hash _ N/A N/A N/A self bs get_tx_blockhash txhash N/A height N/A N/A N/A self bs get_block_height block_hash N/A N/A N/A N/A N/A N/A N/A N/A self store set_block_height txhash height N/A add_raw_tx N/A N/A self raw_tx status N/A TX_STATUS_UNCONFIRMED N/A N/A N/A N/A self add_tx N/A N/A raw_tx get_hex_txhash N/A N/A raw_tx get_hex_tx_data raw_tx status N/A add_tx_by_hash N/A N/A self txhash status N/A None N/A N/A bs N/A N/A N/A self model get_blockchain_state N/A txdata N/A N/A bs get_raw txhash N/A raw_tx N/A N/A RawTxSpec from_tx_data N/A self model N/A N/A txdata decode hex N/A N/A N/A self add_tx txhash txdata raw_tx status N/A add_tx N/A N/A self txhash txdata raw_tx status N/A None N/A N/A entries N/A N/A N/A self model tx_history entries N/A N/A N/A txhash entries N/A N/A N/A entries N/A txhash N/A txtime N/A N/A N/A N/A N/A N/A self model tx_history add_entry_from_tx raw_tx N/A N/A N/A N/A N/A self store get_tx_by_hash txhash N/A N/A N/A status N/A N/A status N/A N/A self identify_tx_status txhash N/A N/A N/A N/A self store add_tx txhash txdata status N/A N/A N/A self update_tx_block_height txhash status N/A N/A N/A self last_status_check N/A txhash N/A time N/A N/A N/A N/A N/A N/A self model get_coin_manager apply_tx txhash raw_tx N/A True N/A N/A old_status N/A N/A N/A self store get_tx_status txhash N/A new_status N/A N/A self maybe_recheck_tx_status txhash old_status N/A N/A old_status new_status N/A recheck_tx_status N/A N/A self txhash N/A N/A N/A status N/A N/A self identify_tx_status txhash N/A N/A N/A N/A self store set_tx_status txhash status N/A N/A N/A self update_tx_block_height txhash status N/A status N/A maybe_recheck_tx_status N/A N/A self txhash status N/A N/A N/A N/A status TX_STATUS_CONFIRMED N/A N/A status N/A N/A N/A N/A time N/A N/A N/A self last_status_check get txhash 0 N/A self recheck_interval N/A N/A status N/A status N/A N/A self recheck_tx_status txhash N/A N/A N/A self last_status_check N/A txhash N/A time N/A status N/A is_tx_valid N/A N/A self txhash N/A N/A N/A status N/A N/A N/A self store get_tx_status txhash N/A N/A status TX_STATUS_CONFIRMED N/A N/A True N/A status N/A N/A self maybe_recheck_tx_status txhash status N/A N/A status TX_STATUS_INVALID N/A is_tx_confirmed N/A N/A self txhash N/A N/A N/A status N/A N/A N/A self store get_tx_status txhash N/A N/A status TX_STATUS_CONFIRMED N/A N/A status N/A N/A self maybe_recheck_tx_status txhash status N/A N/A status TX_STATUS_CONFIRMED N/A N/A NaiveTxDb N/A BaseTxDb N/A N/A Native TxDb trusts results of get_blockchain_state identify_tx_status N/A N/A self txhash N/A N/A N/A N/A block_hash in_mempool N/A N/A N/A N/A N/A self model get_blockchain_state get_tx_blockhash txhash N/A block_hash N/A N/A TX_STATUS_CONFIRMED N/A N/A in_mempool N/A N/A TX_STATUS_UNCONFIRMED N/A N/A TX_STATUS_INVALID N/A N/A TrustingTxDb N/A BaseTxDb N/A N/A TxDb which trusts confirmation data it gets from an external source __init__ N/A N/A self model config get_tx_confirmations N/A N/A N/A N/A N/A N/A super TrustingTxDb self __init__ model config N/A N/A self confirmed_txs N/A set N/A N/A self get_tx_confirmations get_tx_confirmations N/A identify_tx_status N/A N/A self txhash N/A N/A N/A N/A txhash N/A self confirmed_txs N/A N/A TX_STATUS_CONFIRMED N/A confirmations N/A N/A self get_tx_confirmations txhash N/A N/A confirmations 0 N/A N/A N/A N/A N/A self confirmed_txs add txhash N/A TX_STATUS_CONFIRMED N/A N/A N/A confirmations 0 N/A N/A TX_STATUS_UNCONFIRMED N/A N/A N/A block_hash in_mempool N/A N/A N/A N/A N/A self model get_blockchain_state get_tx_blockhash txhash N/A N/A block_hash in_mempool N/A N/A TX_STATUS_UNCONFIRMED N/A N/A TX_STATUS_INVALID N/A N/A VerifiedTxDb N/A BaseTxDb N/A __init__ N/A N/A self model config N/A N/A N/A N/A N/A N/A super VerifiedTxDb self __init__ model config N/A N/A self bs N/A N/A N/A self model get_blockchain_state N/A N/A self vbs N/A VerifiedBlockchainState N/A self bs self N/A N/A config get testnet False N/A N/A N/A os path dirname N/A N/A N/A self model store_conn path N/A N/A N/A N/A self vbs start N/A N/A self lock N/A N/A threading Lock N/A N/A self verified_tx N/A N/A __del__ N/A N/A self N/A N/A N/A N/A self vbs N/A N/A N/A N/A N/A self vbs stop N/A _get_merkle_root N/A N/A self merkle_s start_hash pos N/A N/A N/A hash_decode N/A N/A N/A x N/A N/A N/A N/A x decode hex N/A -1 N/A hash_encode N/A N/A N/A x N/A N/A N/A N/A x N/A -1 encode hex N/A h N/A hash_decode start_hash N/A N/A i item N/A enumerate merkle_s N/A N/A N/A N/A pos i 1 N/A N/A h N/A double_sha256 N/A N/A hash_decode item h N/A N/A h N/A double_sha256 N/A h N/A hash_decode item N/A N/A hash_encode h N/A _verify_merkle N/A N/A self txhash N/A N/A N/A result N/A N/A N/A self bs get_merkle txhash N/A N/A merkle tx_height pos N/A N/A N/A result get merkle N/A N/A result get block_height N/A N/A result get pos N/A merkle_root N/A N/A self _get_merkle_root merkle txhash pos N/A header N/A N/A N/A self vbs get_header tx_height N/A N/A header None N/A N/A False N/A N/A N/A N/A header get merkle_root merkle_root N/A N/A False N/A N/A self lock N/A N/A N/A N/A self verified_tx N/A txhash tx_height N/A True N/A update_tx_block_height N/A N/A self txhash status N/A N/A N/A N/A self lock N/A N/A N/A txhash N/A self verified_tx N/A N/A N/A N/A N/A self store set_block_height txhash N/A N/A self verified_tx N/A txhash N/A drop_from_height N/A N/A self height N/A N/A N/A N/A self lock N/A N/A N/A self verified_tx N/A key value N/A N/A key value N/A N/A N/A self verified_tx items N/A value height N/A get_confirmations N/A N/A self txhash N/A N/A N/A N/A self lock N/A N/A N/A txhash N/A self verified_tx N/A N/A height N/A N/A self verified_tx N/A txhash N/A N/A N/A N/A N/A self vbs height height 1 N/A N/A None N/A identify_tx_status N/A N/A self txhash N/A N/A N/A N/A block_hash in_mempool N/A N/A N/A self bs get_tx_blockhash txhash N/A N/A N/A block_hash N/A in_mempool N/A N/A TX_STATUS_INVALID N/A N/A block_hash N/A N/A TX_STATUS_UNCONFIRMED N/A confirmations N/A N/A self get_confirmations txhash N/A N/A confirmations None N/A N/A verified N/A N/A self _verify_merkle txhash N/A verified N/A N/A N/A N/A self identify_tx_status txhash N/A N/A TX_STATUS_UNCONFIRMED N/A N/A confirmations 0 N/A N/A TX_STATUS_UNCONFIRMED N/A TX_STATUS_CONFIRMED N/A N/A