Monero
Loading...
Searching...
No Matches
framework.daemon.Daemon Class Reference
Inheritance diagram for framework.daemon.Daemon:
Collaboration diagram for framework.daemon.Daemon:

Public Member Functions

 __init__ (self, protocol='http', host='127.0.0.1', port=0, idx=0, restricted_rpc=False)
 getblocktemplate (self, address, prev_block="", client="")
 get_miner_data (self)
 calc_pow (self, major_version, height, block_blob, seed_hash='')
 add_aux_pow (self, blocktemplate_blob, aux_pow, client="")
 send_raw_transaction (self, tx_as_hex, do_not_relay=False, do_sanity_checks=True, client="")
 submitblock (self, block)
 getblock (self, hash='', height=0, fill_pow_hash=False, client="")
 getlastblockheader (self, client="")
 getblockheaderbyhash (self, hash="", hashes=[], client="")
 getblockheaderbyheight (self, height, client="")
 getblockheadersrange (self, start_height, end_height, fill_pow_hash=False, client="")
 get_connections (self, client="")
 get_info (self, client="")
 hard_fork_info (self, client="")
 generateblocks (self, address, blocks=1, prev_block="", starting_nonce=0)
 get_height (self, client="")
 pop_blocks (self, nblocks=1)
 start_mining (self, miner_address, threads_count=0, do_background_mining=False, ignore_battery=False)
 stop_mining (self)
 mining_status (self)
 get_transaction_pool (self, client="")
 get_transaction_pool_hashes (self, client="")
 get_transaction_pool_stats (self, client="")
 flush_txpool (self, txids=[])
 get_version (self)
 get_bans (self)
 set_bans (self, bans=[])
 banned (self, address='')
 set_bootstrap_daemon (self, address, username='', password='')
 get_public_nodes (self, gray=False, white=True)
 get_transactions (self, txs_hashes=[], decode_as_json=False, prune=False, split=False, client="")
 get_outs (self, outputs=[], get_txid=False, client="")
 get_coinbase_tx_sum (self, height, count, client="")
 get_output_distribution (self, amounts=[], from_height=0, to_height=0, cumulative=False, binary=False, compress=False, client="")
 get_output_histogram (self, amounts=[], min_count=0, max_count=0, unlocked=False, recent_cutoff=0, client="")
 set_log_level (self, level)
 set_log_categories (self, categories='')
 get_alt_blocks_hashes (self, client="")
 get_alternate_chains (self, client="")
 get_fee_estimate (self, grace_blocks=0)
 is_key_image_spent (self, key_images=[], client="")
 save_bc (self)
 get_peer_list (self)
 set_log_hash_rate (self, visible)
 stop_daemon (self)
 get_net_stats (self)
 get_limit (self)
 set_limit (self, limit_down, limit_up)
 out_peers (self, out_peers)
 in_peers (self, in_peers)
 update (self, command, path=None)
 get_block_count (self)
 get_block_hash (self, height)
 relay_tx (self, txids=[], client="")
 sync_info (self, client="")
 get_txpool_backlog (self, client="")
 prune_blockchain (self, check=False)
 flush_cache (self, bad_txs=False)
 sync_txpool (self)
 rpc_access_info (self, client)
 rpc_access_submit_nonce (self, client, nonce, cookie)
 rpc_access_pay (self, client, paying_for, payment)
 rpc_access_tracking (self, clear=False)
 rpc_access_data (self)
 rpc_access_account (self, client, delta_balance=0)

Public Attributes

 host = host
 port = port
 rpc = JSONRPC('{protocol}://{host}:{port}'.format(protocol=protocol, host=host, port=port if port else base+idx))

Static Public Attributes

 get_block_template = getblocktemplate
 sendrawtransaction = send_raw_transaction
 submit_block = submitblock
 get_block = getblock
 get_last_block_header = getlastblockheader
 get_block_header_by_hash = getblockheaderbyhash
 get_block_header_by_height = getblockheaderbyheight
 get_block_headers_range = getblockheadersrange
 getinfo = get_info
 getheight = get_height
 gettransactions = get_transactions
 getblockcount = get_block_count
 on_get_block_hash = get_block_hash
 on_getblockhash = get_block_hash

Constructor & Destructor Documentation

◆ __init__()

framework.daemon.Daemon.__init__ ( self,
protocol = 'http',
host = '127.0.0.1',
port = 0,
idx = 0,
restricted_rpc = False )

Member Function Documentation

◆ add_aux_pow()

framework.daemon.Daemon.add_aux_pow ( self,
blocktemplate_blob,
aux_pow,
client = "" )

◆ banned()

framework.daemon.Daemon.banned ( self,
address = '' )

◆ calc_pow()

framework.daemon.Daemon.calc_pow ( self,
major_version,
height,
block_blob,
seed_hash = '' )

◆ flush_cache()

framework.daemon.Daemon.flush_cache ( self,
bad_txs = False )

◆ flush_txpool()

framework.daemon.Daemon.flush_txpool ( self,
txids = [] )

◆ generateblocks()

framework.daemon.Daemon.generateblocks ( self,
address,
blocks = 1,
prev_block = "",
starting_nonce = 0 )

◆ get_alt_blocks_hashes()

framework.daemon.Daemon.get_alt_blocks_hashes ( self,
client = "" )

◆ get_alternate_chains()

framework.daemon.Daemon.get_alternate_chains ( self,
client = "" )

◆ get_bans()

framework.daemon.Daemon.get_bans ( self)

◆ get_block_count()

framework.daemon.Daemon.get_block_count ( self)

◆ get_block_hash()

framework.daemon.Daemon.get_block_hash ( self,
height )

◆ get_coinbase_tx_sum()

framework.daemon.Daemon.get_coinbase_tx_sum ( self,
height,
count,
client = "" )

◆ get_connections()

framework.daemon.Daemon.get_connections ( self,
client = "" )

◆ get_fee_estimate()

framework.daemon.Daemon.get_fee_estimate ( self,
grace_blocks = 0 )

◆ get_height()

framework.daemon.Daemon.get_height ( self,
client = "" )

◆ get_info()

framework.daemon.Daemon.get_info ( self,
client = "" )

◆ get_limit()

framework.daemon.Daemon.get_limit ( self)

◆ get_miner_data()

framework.daemon.Daemon.get_miner_data ( self)

◆ get_net_stats()

framework.daemon.Daemon.get_net_stats ( self)

◆ get_output_distribution()

framework.daemon.Daemon.get_output_distribution ( self,
amounts = [],
from_height = 0,
to_height = 0,
cumulative = False,
binary = False,
compress = False,
client = "" )

◆ get_output_histogram()

framework.daemon.Daemon.get_output_histogram ( self,
amounts = [],
min_count = 0,
max_count = 0,
unlocked = False,
recent_cutoff = 0,
client = "" )

◆ get_outs()

framework.daemon.Daemon.get_outs ( self,
outputs = [],
get_txid = False,
client = "" )

◆ get_peer_list()

framework.daemon.Daemon.get_peer_list ( self)

◆ get_public_nodes()

framework.daemon.Daemon.get_public_nodes ( self,
gray = False,
white = True )

◆ get_transaction_pool()

framework.daemon.Daemon.get_transaction_pool ( self,
client = "" )

◆ get_transaction_pool_hashes()

framework.daemon.Daemon.get_transaction_pool_hashes ( self,
client = "" )

◆ get_transaction_pool_stats()

framework.daemon.Daemon.get_transaction_pool_stats ( self,
client = "" )

◆ get_transactions()

framework.daemon.Daemon.get_transactions ( self,
txs_hashes = [],
decode_as_json = False,
prune = False,
split = False,
client = "" )

◆ get_txpool_backlog()

framework.daemon.Daemon.get_txpool_backlog ( self,
client = "" )

◆ get_version()

framework.daemon.Daemon.get_version ( self)

◆ getblock()

framework.daemon.Daemon.getblock ( self,
hash = '',
height = 0,
fill_pow_hash = False,
client = "" )

◆ getblockheaderbyhash()

framework.daemon.Daemon.getblockheaderbyhash ( self,
hash = "",
hashes = [],
client = "" )

◆ getblockheaderbyheight()

framework.daemon.Daemon.getblockheaderbyheight ( self,
height,
client = "" )

◆ getblockheadersrange()

framework.daemon.Daemon.getblockheadersrange ( self,
start_height,
end_height,
fill_pow_hash = False,
client = "" )

◆ getblocktemplate()

framework.daemon.Daemon.getblocktemplate ( self,
address,
prev_block = "",
client = "" )

◆ getlastblockheader()

framework.daemon.Daemon.getlastblockheader ( self,
client = "" )

◆ hard_fork_info()

framework.daemon.Daemon.hard_fork_info ( self,
client = "" )

◆ in_peers()

framework.daemon.Daemon.in_peers ( self,
in_peers )

◆ is_key_image_spent()

framework.daemon.Daemon.is_key_image_spent ( self,
key_images = [],
client = "" )

◆ mining_status()

framework.daemon.Daemon.mining_status ( self)

◆ out_peers()

framework.daemon.Daemon.out_peers ( self,
out_peers )

◆ pop_blocks()

framework.daemon.Daemon.pop_blocks ( self,
nblocks = 1 )

◆ prune_blockchain()

framework.daemon.Daemon.prune_blockchain ( self,
check = False )

◆ relay_tx()

framework.daemon.Daemon.relay_tx ( self,
txids = [],
client = "" )

◆ rpc_access_account()

framework.daemon.Daemon.rpc_access_account ( self,
client,
delta_balance = 0 )

◆ rpc_access_data()

framework.daemon.Daemon.rpc_access_data ( self)

◆ rpc_access_info()

framework.daemon.Daemon.rpc_access_info ( self,
client )

◆ rpc_access_pay()

framework.daemon.Daemon.rpc_access_pay ( self,
client,
paying_for,
payment )

◆ rpc_access_submit_nonce()

framework.daemon.Daemon.rpc_access_submit_nonce ( self,
client,
nonce,
cookie )

◆ rpc_access_tracking()

framework.daemon.Daemon.rpc_access_tracking ( self,
clear = False )

◆ save_bc()

framework.daemon.Daemon.save_bc ( self)

◆ send_raw_transaction()

framework.daemon.Daemon.send_raw_transaction ( self,
tx_as_hex,
do_not_relay = False,
do_sanity_checks = True,
client = "" )

◆ set_bans()

framework.daemon.Daemon.set_bans ( self,
bans = [] )

◆ set_bootstrap_daemon()

framework.daemon.Daemon.set_bootstrap_daemon ( self,
address,
username = '',
password = '' )

◆ set_limit()

framework.daemon.Daemon.set_limit ( self,
limit_down,
limit_up )

◆ set_log_categories()

framework.daemon.Daemon.set_log_categories ( self,
categories = '' )

◆ set_log_hash_rate()

framework.daemon.Daemon.set_log_hash_rate ( self,
visible )

◆ set_log_level()

framework.daemon.Daemon.set_log_level ( self,
level )

◆ start_mining()

framework.daemon.Daemon.start_mining ( self,
miner_address,
threads_count = 0,
do_background_mining = False,
ignore_battery = False )

◆ stop_daemon()

framework.daemon.Daemon.stop_daemon ( self)

◆ stop_mining()

framework.daemon.Daemon.stop_mining ( self)

◆ submitblock()

framework.daemon.Daemon.submitblock ( self,
block )

◆ sync_info()

framework.daemon.Daemon.sync_info ( self,
client = "" )

◆ sync_txpool()

framework.daemon.Daemon.sync_txpool ( self)

◆ update()

framework.daemon.Daemon.update ( self,
command,
path = None )

Member Data Documentation

◆ get_block

framework.daemon.Daemon.get_block = getblock
static

◆ get_block_header_by_hash

framework.daemon.Daemon.get_block_header_by_hash = getblockheaderbyhash
static

◆ get_block_header_by_height

framework.daemon.Daemon.get_block_header_by_height = getblockheaderbyheight
static

◆ get_block_headers_range

framework.daemon.Daemon.get_block_headers_range = getblockheadersrange
static

◆ get_block_template

framework.daemon.Daemon.get_block_template = getblocktemplate
static

◆ get_last_block_header

framework.daemon.Daemon.get_last_block_header = getlastblockheader
static

◆ getblockcount

framework.daemon.Daemon.getblockcount = get_block_count
static

◆ getheight

framework.daemon.Daemon.getheight = get_height
static

◆ getinfo

framework.daemon.Daemon.getinfo = get_info
static

◆ gettransactions

framework.daemon.Daemon.gettransactions = get_transactions
static

◆ host

framework.daemon.Daemon.host = host

◆ on_get_block_hash

framework.daemon.Daemon.on_get_block_hash = get_block_hash
static

◆ on_getblockhash

framework.daemon.Daemon.on_getblockhash = get_block_hash
static

◆ port

framework.daemon.Daemon.port = port

◆ rpc

framework.daemon.Daemon.rpc = JSONRPC('{protocol}://{host}:{port}'.format(protocol=protocol, host=host, port=port if port else base+idx))

◆ sendrawtransaction

framework.daemon.Daemon.sendrawtransaction = send_raw_transaction
static

◆ submit_block

framework.daemon.Daemon.submit_block = submitblock
static

The documentation for this class was generated from the following file: