MCPcopy Create free account

hub / github.com/SaitoTech/saito-rust / functions

Functions495 in github.com/SaitoTech/saito-rust

↓ 1 callersFunctionbuild_request_block_response
( api_message: &APIMessage, blockchain_lock: Arc<RwLock<Blockchain>>, )
src/peer.rs:675
↓ 1 callersFunctionbuild_send_blockchain_message
( request_blockchain_message: &RequestBlockchainMessage, blockchain_lock: Arc<RwLock<Blockchain>>, )
src/peer.rs:721
↓ 1 callersFunctionbuild_serialized_challenge
( message: &APIMessage, wallet_lock: Arc<RwLock<Wallet>>, )
src/peer.rs:614
↓ 1 callersMethodbundle_block
( &mut self, blockchain_lock: Arc<RwLock<Blockchain>>, current_timestamp: u64, )
src/mempool.rs:130
↓ 1 callersMethodcan_bundle_block
( &self, blockchain_lock: Arc<RwLock<Blockchain>>, current_timestamp: u64, )
src/mempool.rs:153
↓ 1 callersMethodchallenger_sig
(&self)
src/networking/message_types/handshake_challenge.rs:108
↓ 1 callersMethodcheck_blockchain
check that the blockchain connects properly
src/test_utilities/test_manager.rs:338
↓ 1 callersMethodcompare
slip comparison is used when inserting slips (staking slips) into the staking tables, as the order of the stakers table needs to be identical regardle
src/slip.rs:214
↓ 1 callersMethodcontains_block_hash
(&self, hash: SaitoHash)
src/blockring.rs:34
↓ 1 callersMethodcontains_block_hash_at_block_id
(&self, block_id: u64, block_hash: SaitoHash)
src/blockchain.rs:767
↓ 1 callersMethodcontains_block_hash_at_block_id
(&self, block_id: u64, block_hash: SaitoHash)
src/blockring.rs:125
↓ 1 callersMethodcreate_staking_withdrawal_transaction
creates a staking withdrawal transaction if possible that removes a slip from the staking table. this function is primarily used for testing and as a
src/wallet.rs:367
↓ 1 callersMethoddelete_block
deletes a single block
src/blockchain.rs:1283
↓ 1 callersMethoddelete_blocks
deletes all blocks at a single block_id
src/blockchain.rs:1258
↓ 1 callersMethoddelete_staked_slip
(&mut self, slip: &Slip)
src/wallet.rs:168
↓ 1 callersMethoddelete_transactions
(&mut self, transactions: &Vec<Transaction>)
src/mempool.rs:183
↓ 1 callersMethoddeserialize_for_disk
[privatekey - 32 bytes [publickey - 33 bytes]
src/wallet.rs:89
↓ 1 callersMethoddowngrade_blockchain_data
(&mut self)
src/blockchain.rs:1322
↓ 1 callersMethodgenerate_block
generate block
src/test_utilities/test_manager.rs:179
↓ 1 callersMethodgenerate_block_via_mempool
(&self)
src/test_utilities/test_manager.rs:282
↓ 1 callersMethodgenerate_fork_id
(&self, block_id: u64)
src/blockchain.rs:445
↓ 1 callersMethodgenerate_metadata_cumulative_work
calculate cumulative routing work in block
src/transaction.rs:721
↓ 1 callersMethodgenerate_metadata_fees_and_slips
calculate abstract metadata for fees note that this expects the hash_for_signature to have already been calculated.
src/transaction.rs:746
↓ 1 callersMethodgenerate_metadata_hashes
calculate hashes used in signatures
src/transaction.rs:727
↓ 1 callersMethodgenerate_transaction
generate transaction
src/test_utilities/test_manager.rs:318
↓ 1 callersMethodget_available_balance
(&self)
src/wallet.rs:212
↓ 1 callersMethodget_block_id
(&self)
src/wallet.rs:464
↓ 1 callersFunctionget_block_route_filter
get block filter. TODO remove this? I believe we want ot use the socket for everything...
src/networking/filters.rs:32
↓ 1 callersMethodget_fee_transaction_idx
(&self)
src/block.rs:325
↓ 1 callersMethodget_golden_ticket_idx
(&self)
src/block.rs:317
↓ 1 callersMethodget_has_fee_transaction
(&self)
src/block.rs:313
↓ 1 callersMethodget_latest_block_hash
(&self)
src/networking/message_types/request_blockchain_message.rs:44
↓ 1 callersMethodget_lc
(&self)
src/block.rs:257
↓ 1 callersMethodget_mut_outputs
(&mut self)
src/transaction.rs:426
↓ 1 callersMethodget_path
(&self)
src/transaction.rs:402
↓ 1 callersMethodget_payout
(&self)
src/slip.rs:154
↓ 1 callersMethodget_routing_work_available
Calculates the work available in mempool to produce a block
src/mempool.rs:204
↓ 1 callersMethodget_routing_work_needed
Return work needed in Nolan
src/mempool.rs:214
↓ 1 callersMethodget_slip_ordinal
(&self)
src/slip.rs:162
↓ 1 callersMethodget_winning_routing_node
(&self, random_hash: SaitoHash)
src/transaction.rs:446
↓ 1 callersFunctionhandle_inbound_peer_connection
spawns a task to read messages from the socket of inbound peers.
src/peer.rs:536
↓ 1 callersMethodhas_block_hash
(&self)
src/networking/message_types/request_block_message.rs:47
↓ 1 callersMethodhas_block_id
(&self)
src/networking/message_types/request_block_message.rs:44
↓ 1 callersMethodhas_sync_type
(&self)
src/networking/message_types/request_block_message.rs:50
↓ 1 callersMethodinitialize
Initialize the network class generally, including adding any peers we have configured (peers set in the configuration/*.yml) into our PEERS_DB_GLOBAL
src/network.rs:98
↓ 1 callersMethodis_block_indexed
(&self, block_hash: SaitoHash)
src/blockchain.rs:760
↓ 1 callersMethodis_fee_transaction
(&self)
src/transaction.rs:386
↓ 1 callersMethodis_in_path
(&self, path: &Vec<Hop>)
src/peer.rs:246
↓ 1 callersMethodis_issuance_transaction
(&self)
src/transaction.rs:398
↓ 1 callersMethodis_new_chain_the_longest_chain
( &mut self, new_chain: &Vec<[u8; 32]>, old_chain: &Vec<[u8; 32]>, )
src/blockchain.rs:772
↓ 1 callersMethodmine_on_block_until_golden_ticket_found
function used primarily for test fuctions
src/miner.rs:71
↓ 1 callersMethodopponent_sig
(&self)
src/networking/message_types/handshake_challenge.rs:112
↓ 1 callersFunctionpost_transaction_route_filter
POST tx filter. TODO remove this? I believe we want ot use the socket for everything...
src/networking/filters.rs:44
↓ 1 callersMethodremove_deposit
(&mut self, slip: Slip)
src/staking.rs:233
↓ 1 callersFunctionrun
( miner_lock: Arc<RwLock<Miner>>, broadcast_channel_sender: broadcast::Sender<SaitoMessage>, mut b
src/miner.rs:103
↓ 1 callersMethodserialize
(&self)
src/networking/message_types/request_blockchain_message.rs:34
↓ 1 callersMethodserialize
(&self)
src/networking/message_types/send_block_head_message.rs:24
↓ 1 callersMethodserialize
(&self)
src/networking/message_types/send_blockchain_message.rs:98
↓ 1 callersMethodserialize_for_disk
[privatekey - 32 bytes] [publickey - 33 bytes]
src/wallet.rs:78
↓ 1 callersMethodserialize_for_hash
serialize the pre_hash and the signature_for_source into a bytes array that can be hashed and then have the hash set.
src/block.rs:568
↓ 1 callersMethodserialize_for_net
(&self)
src/slip.rs:318
↓ 1 callersMethodserialize_for_transaction
(&self)
src/golden_ticket.rs:132
↓ 1 callersMethodserialize_input_for_signature
Serialization
src/slip.rs:249
↓ 1 callersMethodserialize_output_for_signature
Serialization output slips are signed with the UUIDs set as zero'd-out byte arrays. we have a separate serialization function so we do not need to ma
src/slip.rs:271
↓ 1 callersMethodserialize_raw
(&self)
src/networking/message_types/handshake_challenge.rs:78
↓ 1 callersMethodset_block_hash
(&mut self, hash: SaitoHash)
src/wallet.rs:504
↓ 1 callersMethodset_block_id
(&mut self, id: u64)
src/wallet.rs:500
↓ 1 callersMethodset_broadcast_channel_sender
(&mut self, bcs: broadcast::Sender<SaitoMessage>)
src/mempool.rs:227
↓ 1 callersMethodset_broadcast_channel_sender
(&mut self, bcs: broadcast::Sender<SaitoMessage>)
src/blockchain.rs:70
↓ 1 callersMethodset_broadcast_channel_sender
(&mut self, bcs: broadcast::Sender<SaitoMessage>)
src/miner.rs:36
↓ 1 callersMethodset_challenger_sig
(&mut self, sig: Option<SaitoSignature>)
src/networking/message_types/handshake_challenge.rs:124
↓ 1 callersMethodset_fee_transaction_idx
(&mut self, idx: u64)
src/block.rs:370
↓ 1 callersMethodset_fork_id
(&mut self, fork_id: SaitoHash)
src/blockchain.rs:74
↓ 1 callersMethodset_golden_ticket_idx
(&mut self, idx: u64)
src/block.rs:366
↓ 1 callersMethodset_has_fee_transaction
(&mut self, hft: bool)
src/block.rs:358
↓ 1 callersMethodset_has_golden_ticket
(&mut self, hgt: bool)
src/block.rs:354
↓ 1 callersMethodset_has_issuance_transaction
(&mut self, hit: bool)
src/block.rs:350
↓ 1 callersMethodset_inputs
(&mut self, inputs: Vec<Slip>)
src/transaction.rs:517
↓ 1 callersMethodset_is_active
(&mut self, is_active: bool)
src/miner.rs:90
↓ 1 callersMethodset_issuance_transaction_idx
(&mut self, idx: u64)
src/block.rs:362
↓ 1 callersMethodset_lc
(&mut self, lc: bool)
src/wallet.rs:508
↓ 1 callersMethodset_lc
(&mut self, lc: bool)
src/block.rs:402
↓ 1 callersMethodset_mempool_privatekey
(&mut self, privatekey: SaitoPrivateKey)
src/mempool.rs:235
↓ 1 callersMethodset_mempool_publickey
(&mut self, publickey: SaitoPublicKey)
src/mempool.rs:231
↓ 1 callersMethodset_opponent_sig
(&mut self, sig: Option<SaitoSignature>)
src/networking/message_types/handshake_challenge.rs:128
↓ 1 callersMethodset_payout
(&mut self, payout: u64)
src/slip.rs:178
↓ 1 callersMethodset_routing_work_for_creator
(&mut self, routing_work_for_creator: u64)
src/block.rs:346
↓ 1 callersMethodset_timestamp
(&mut self, timestamp: u64)
src/networking/message_types/handshake_challenge.rs:120
↓ 1 callersMethodset_total_fees
(&mut self, total_fees: u64)
src/block.rs:374
↓ 1 callersMethodset_utxokey
(&mut self, utxokey: SaitoUTXOSetKey)
src/wallet.rs:492
↓ 1 callersFunctionsignal_for_shutdown
()
src/networking/signals.rs:4
↓ 1 callersFunctionsocket_receive_transaction
(message: APIMessage)
src/peer.rs:670
↓ 1 callersFunctionsocket_send_block_header
( api_message: &APIMessage, blockchain_lock: Arc<RwLock<Blockchain>>, )
src/peer.rs:708
↓ 1 callersMethodspam_mempool
(&mut self, mempool_lock: Arc<RwLock<Mempool>>)
src/test_utilities/test_manager.rs:679
↓ 1 callersMethodtimestamp
(&self)
src/networking/message_types/handshake_challenge.rs:116
↓ 1 callersMethodtransaction_exists
(&self, tx_hash: Option<SaitoHash>)
src/mempool.rs:253
↓ 1 callersFunctiontry_bundle_block
( mempool_lock: Arc<RwLock<Mempool>>, blockchain_lock: Arc<RwLock<Blockchain>>, current_timestamp:
src/mempool.rs:260
↓ 1 callersMethodupdate_genesis_period
(&mut self)
src/blockchain.rs:1224
↓ 1 callersMethodvalidate
( &self, blockchain: &Blockchain, utxoset: &AHashMap<SaitoUTXOSetKey, u64>, st
src/block.rs:1347
↓ 1 callersMethodvalidate_routing_path
(&self)
src/transaction.rs:127
← previousnext →201–300 of 495, ranked by callers