MCPcopy Create free account

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

Functions495 in github.com/SaitoTech/saito-rust

Methodload_blocks_from_disk
(blockchain_lock: Arc<RwLock<Blockchain>>)
src/storage.rs:79
Functionmain
()
src/main.rs:29
Functionmain
()
src/bin/saitocli.rs:85
Functionmempool_add_block_test
()
src/mempool.rs:408
Functionmempool_bundle_blocks_test
()
src/mempool.rs:418
Functionmempool_new_test
()
src/mempool.rs:401
Methodmine
(&mut self)
src/miner.rs:40
Functionmissing_blocks_test
()
src/network.rs:752
Methodnew
()
src/hop.rs:27
Methodnew
(command: &str, message: Vec<u8>, peer: &mut SaitoPeer)
src/peer.rs:98
Methodnew
(target: SaitoHash, random: SaitoHash, publickey: SaitoPublicKey)
src/golden_ticket.rs:18
Methodnew
(wallet_lock: Arc<RwLock<Wallet>>)
src/mempool.rs:47
Methodnew
(left: SaitoHash, right: SaitoHash, level: u8)
src/merkle.rs:16
Methodnew
(wallet_lock: Arc<RwLock<Wallet>>)
src/blockchain.rs:57
Methodnew
()
src/blockring.rs:26
Methodnew
()
src/wallet.rs:30
Methodnew
Create a Network
src/network.rs:73
Methodnew
()
src/staking.rs:28
Methodnew
()
src/slip.rs:51
Methodnew
(wallet_lock: Arc<RwLock<Wallet>>)
src/miner.rs:26
Methodnew
()
src/transaction.rs:72
Methodnew
()
src/block.rs:74
Methodnew
(blockchain_lock: Arc<RwLock<Blockchain>>, wallet_lock: Arc<RwLock<Wallet>>)
src/test_utilities/test_manager.rs:43
Methodnew
(message_name: &str, message_id: u32, message_data: Vec<u8>)
src/networking/api_message.rs:31
Methodnew
( (challenger_ip_address, challenger_public_key): ([u8; 4], SaitoPublicKey), (opponent_ip_adre
src/networking/message_types/handshake_challenge.rs:24
Methodnew
(latest_block_id: u64, latest_block_hash: SaitoHash, fork_id: SaitoHash)
src/networking/message_types/request_blockchain_message.rs:18
Methodnew
(block_hash: SaitoHash)
src/networking/message_types/send_block_head_message.rs:14
Methodnew
(has_block_id: bool, has_block_hash: bool, has_sync_type: bool)
src/networking/message_types/request_block_message.rs:31
Methodnew
( sync_type: SyncType, starting_hash: SaitoHash, blocks_data: Vec<SendBlockchainBlockD
src/networking/message_types/send_blockchain_message.rs:34
Methodnew_from_string
( message_name: &str, message_id: u32, message_string: &str, )
src/networking/api_message.rs:38
Methodon_chain_reorganization
(&mut self, block: &Block, lc: bool)
src/wallet.rs:94
Methodon_chain_reorganization
Runs when the chain is re-organized
src/transaction.rs:689
Methodon_chain_reorganization
( &self, utxoset: &mut AHashMap<SaitoUTXOSetKey, u64>, longest_chain: bool, )
src/block.rs:1198
Methodopponent_ip_address
(&self)
src/networking/message_types/handshake_challenge.rs:96
Functionpersistable
(input: TokenStream)
macros/src/lib.rs:59
Methodpoll
(self: Pin<&mut Self>, cx: &mut Context<'_>)
src/peer.rs:112
Functionpost_transaction_handler
POST tx filter. TODO remove this? I believe we want ot use the socket for everything... There is a SNDTRANS command which does this, but is currently
src/networking/handlers.rs:67
Methodprint_lc
(&self)
src/blockring.rs:113
Methodpropagate_block
send block to all peers
src/network.rs:276
Methodpropagate_transaction
(wallet_lock: Arc<RwLock<Wallet>>, mut tx: Transaction)
src/network.rs:292
Functionread_issuance_file_test
()
src/storage.rs:233
Methodread_lines_from_file
(filename: P)
src/storage.rs:162
Methodreturn_burnfee_for_block_produced_at_current_timestamp_in_nolan
Returns an adjusted burnfee based on the start value provided and the difference between the current block timestamp and the previous block timestamp
src/burnfee.rs:52
Methodreturn_routing_work_needed_to_produce_block_in_nolan
Returns the amount of work needed to produce a block given the timestamp of the previous block, the current timestamp, and the y-axis of the burn fee
src/burnfee.rs:15
Methodreturn_token_supply_slips_from_disk
token issuance functions below
src/storage.rs:124
Functionrun
This initialization function starts a dedicated thread that listens for local and global broadcast messages and triggers the necessary responses.
src/mempool.rs:291
Functionrun
The entry point to the Saito consensus runtime
src/consensus.rs:42
Functionrun
This function is called on initialization to setup the sending and receiving channels for asynchronous loops or message checks
src/blockchain.rs:1358
Methodrun
Run consensus
src/consensus.rs:86
Functionrun_server
Runs warp::serve to listen for incoming connections
src/network.rs:450
Functionsave_and_restore_wallet_test
()
src/wallet.rs:531
Methodsend_blocks_to_blockchain
( mempool_lock: Arc<RwLock<Mempool>>, blockchain_lock: Arc<RwLock<Blockchain>>, )
src/mempool.rs:239
Methodsend_error_response
Helper function for sending errors
src/peer.rs:308
Functionserialize_for_net_test
()
src/transaction.rs:1180
Methodset_difficulty
(&mut self, difficulty: u64)
src/miner.rs:98
Methodset_privatekey
(&mut self, privatekey: SaitoPrivateKey)
src/wallet.rs:188
Methodset_target
(&mut self, target: SaitoHash)
src/miner.rs:94
Functionsign_message_test
()
src/crypto.rs:143
Functionsignature_idempotency_test
()
src/block.rs:2122
Functionslip_addition_and_removal_from_utxoset
()
src/slip.rs:383
Functionslip_get_utxoset_key_test
()
src/slip.rs:369
Functionslip_new_test
()
src/slip.rs:338
Functionslip_serialization_for_net_test
()
src/slip.rs:374
Functionslip_serialize_for_signature_test
()
src/slip.rs:363
Functionstaking_add_deposit_slip_and_payout_calculation_test
()
src/staking.rs:645
Functionstaking_add_staker_slips_in_different_order_and_check_sorting_works
()
src/staking.rs:573
Functionstaking_create_blockchain_with_many_staking_deposits_many_staker_payouts_per_block
()
src/staking.rs:951
Functionstaking_create_blockchain_with_two_staking_deposits_one_staker_payout_per_block
()
src/staking.rs:751
Functionstaking_remove_staker_code_handles_duplicates_properly
()
src/staking.rs:704
Functionsymmetrical_encryption_works_test
test symmetrical encryption works properly
src/crypto.rs:133
Functiontest_blockchain_causes_sndblkhd
()
src/network.rs:858
Functiontest_challenge_serialize
()
src/networking/message_types/handshake_challenge.rs:141
Functiontest_manager_blockchain_fork_test
use test_manager to generate blockchains and reorgs and test
src/blockchain.rs:1797
Functiontest_message_serialize
()
src/networking/api_message.rs:93
Functiontest_network_message_sending
()
src/network.rs:933
Functiontest_request_block_message_serialize
()
src/networking/message_types/request_block_message.rs:127
Functiontest_request_blockchain_message_serialize
()
src/networking/message_types/request_blockchain_message.rs:58
Functiontest_send_block_head_message_serialize
()
src/networking/message_types/send_block_head_message.rs:41
Functiontest_send_blockchain_message_serialize
()
src/networking/message_types/send_blockchain_message.rs:120
Functiontest_serialize_for_signature
()
src/transaction.rs:1036
Functiontest_serialize_for_signature_with_data
()
src/transaction.rs:1045
Functiontest_sndblkhd
()
src/network.rs:699
Functiontest_sndchain
()
src/network.rs:616
Functiontransaction_generate_metadata_cumulative_fees_test
()
src/transaction.rs:1173
Functiontransaction_new_test
()
src/transaction.rs:1005
Functiontransaction_sign_test
()
src/transaction.rs:1023
Methodtry_from
(s: String)
src/configuration.rs:74
Functiontry_from_byte
(input: TokenStream)
macros/src/lib.rs:15
Functiontx_sign_with_data
()
src/transaction.rs:1108
Methodvalidate
(&self, utxoset: &UtxoSet, staking: &Staking)
src/transaction.rs:812
Methodvalidate_slip_in_deposits
(&self, slip: Slip)
src/staking.rs:159
Functionwallet_new_test
()
src/wallet.rs:523
Methodwrite_block_to_disk
(block: &mut Block)
src/storage.rs:66
Functionwrite_read_block_to_file_test
()
src/storage.rs:246
Functionws_upgrade_handler
websocket upgrade handler. accepts an http connection and upgrades it to WebSocket. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade
src/networking/handlers.rs:43
← previous401–495 of 495, ranked by callers