MCPcopy Create free account

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

Functions495 in github.com/SaitoTech/saito-rust

↓ 1 callersFunctionwith_broadcast_channel_sender
inject blockchain lock
src/networking/filters.rs:84
↓ 1 callersFunctionwith_peers_filter
inject peers db lock TODO Can this just be deleted? we should be able to just get the Peers DB from lazy_static global object PEERS_DB_GLOBAL
src/networking/filters.rs:59
↓ 1 callersFunctionwith_wallet
inject wallet lock
src/networking/filters.rs:65
Methodadd_block
add block at end of longest chain
src/test_utilities/test_manager.rs:55
Methodadd_block_to_blockchain
(blockchain_lock: Arc<RwLock<Blockchain>>, block: Block)
src/blockchain.rs:363
Functionadd_five_good_blocks
test we can produce five blocks in a row
src/blockchain.rs:1445
Methodadd_golden_ticket
(&mut self, golden_ticket: GoldenTicket)
src/mempool.rs:72
Functionadd_seven_good_blocks_and_two_golden_tickets
test we add blocks 6 and 7 because of suffient mining
src/blockchain.rs:1546
Functionadd_seven_good_blocks_but_no_golden_tickets
test we do not add blocks 6 and 7 because of insuffient mining
src/blockchain.rs:1490
Functionadd_ten_blocks_including_five_block_chain_reorg
add 10 blocks including chain reorganization and sufficient mining
src/blockchain.rs:1602
Functionbit_pack_test
code that packs/unpacks two 32-bit values into one 64-bit variable
src/blockchain.rs:1416
Functionblock_downgrade_upgrade_test
downgrade and upgrade a block with transactions
src/block.rs:2082
Functionblock_generate_hashes
test that we are properly generating pre_hash and hash
src/block.rs:1914
Functionblock_merkle_root_test
confirm merkle root is being generated from transactions in block
src/block.rs:2057
Functionblock_new_test
()
src/block.rs:1865
Functionblock_serialize_for_net_test
confirm serialization / deserialization does not modify block content
src/block.rs:1983
Functionblock_serialize_for_signature_hash
confirm we have not modified the length of the serialized block
src/block.rs:1924
Functionblock_serialize_for_signature_hash_with_data
()
src/block.rs:1932
Functionblock_sign_test
signs and verifies the signature of a block
src/block.rs:1892
Functionblockchain_roll_forward_staking_table_test_with_test_manager
()
src/staking.rs:1241
Functionblockchain_staking_deposits_test
()
src/staking.rs:1089
Functionblockring_add_block_test
confirm adding block changes nothing until on_chain_reorg
src/blockring.rs:508
Functionblockring_automatic_reorganization_test
adding blocks to blockchain wind / unwind blockring view of longest chain
src/blockring.rs:374
Functionblockring_manual_reorganization_test
winding / unwinding updates blockring view of longest chain
src/blockring.rs:248
Functionburnfee_burn_fee_adjustment_test
()
src/burnfee.rs:103
Functionburnfee_return_work_needed_test
()
src/burnfee.rs:88
Methodchallenger_ip_address
(&self)
src/networking/message_types/handshake_challenge.rs:92
Methodcheck_block_consistency
(block: &Block)
src/test_utilities/test_manager.rs:585
Functionconfigure_storage
()
src/storage.rs:28
Methodconnect_to_peer
Connect to a peer via websocket and spawn a Task to handle message received on the socket and pipe them to handle_peer_message().
src/network.rs:128
Methodconvert_issuance_into_slip
(line: std::string::String)
src/storage.rs:170
Methoddelete
runs when block is deleted for good
src/transaction.rs:677
Methoddelete
(&self, utxoset: &mut AHashMap<SaitoUTXOSetKey, u64>)
src/block.rs:1843
Methoddelete_block
(&mut self, block_id: u64, hash: SaitoHash)
src/blockring.rs:43
Methoddelete_block
removes all slips in block when pruned / deleted
src/wallet.rs:135
Methoddelete_block_from_disk
(filename: String)
src/storage.rs:114
Methoddeserialize
(bytes: &Vec<u8>)
src/networking/api_message.rs:67
Methoddeserialize
(bytes: &Vec<u8>)
src/networking/message_types/handshake_challenge.rs:43
Methoddeserialize
(bytes: &Vec<u8>)
src/networking/message_types/request_blockchain_message.rs:26
Methoddeserialize
(bytes: &Vec<u8>)
src/networking/message_types/send_block_head_message.rs:18
Methoddeserialize
(bytes: &Vec<u8>)
src/networking/message_types/request_block_message.rs:68
Methoddeserialize
(bytes: &Vec<u8>)
src/networking/message_types/send_blockchain_message.rs:55
Methoddeserialize_for_net
Deserialize from bytes to a Block. [len of transactions - 4 bytes - u32] [id - 8 bytes - u64] [timestamp - 8 bytes - u64] [previous_block_hash - 32 by
src/block.rs:654
Methoddeserialize_for_transaction
(bytes: Vec<u8>)
src/golden_ticket.rs:140
Methoddeserialize_from_net
(bytes: Vec<u8>)
src/hop.rs:74
Methoddeserialize_from_net
(bytes: Vec<u8>)
src/slip.rs:302
Methoddeserialize_from_net
Deserialize from bytes to a Transaction. [len of inputs - 4 bytes - u32] [len of outputs - 4 bytes - u32] [len of message - 4 bytes - u32] [len of pat
src/transaction.rs:583
Methoddrop
(&mut self)
src/storage.rs:209
Methodfile_exists
(filename: &str)
src/storage.rs:52
Functionformat_timestamp
( timestamp: u64, )
src/time.rs:11
Functionformat_url_string
(host: [u8; 4], port: u16)
src/util.rs:1
Methodgenerate
( transactions: &mut Vec<Transaction>, previous_block_hash: SaitoHash, wallet_lock: Ar
src/block.rs:1663
Methodgenerate_block_filename
(block: &Block)
src/storage.rs:57
Methodgenerate_hop
( wallet_lock: Arc<RwLock<Wallet>>, to_publickey: SaitoPublicKey, hash_to_sign: SaitoH
src/hop.rs:35
Functiongenerate_keypair_from_privatekey
Create and return a keypair with the given hex u8 array as the private key
src/crypto.rs:64
Methodgenerate_last_shared_ancestor
( &self, peer_latest_block_id: u64, fork_id: SaitoHash, )
src/blockchain.rs:537
Methodgenerate_metadata
(&mut self, publickey: SaitoPublicKey)
src/transaction.rs:806
Methodgenerate_rebroadcast_transaction
generate ATR transaction using source transaction and output slip this assumes that the
src/transaction.rs:297
Methodgenerate_solution
TODO - review exact solution generated and mechanism to determine validity
src/golden_ticket.rs:27
Methodgenerate_transaction
this function exists largely for testing. It attempts to attach the requested fee to the transaction if possible. If not possible it reverts back to a
src/transaction.rs:161
Methodgenerate_vip_transaction
generate a transaction that has more outputs than inputs. this is primarily being used for testing but it will be used to populate the first block wit
src/transaction.rs:271
Functionget_block_handler
get block handler. TODO remove this. For now it is just in place as a simple means to transfer blocks to saito-lite so we can test the ability to seri
src/networking/handlers.rs:97
Methodget_block_hash
(&self)
src/networking/message_types/send_block_head_message.rs:30
Methodget_block_hash
(&self)
src/networking/message_types/request_block_message.rs:113
Methodget_block_id
(&self)
src/networking/message_types/request_block_message.rs:110
Methodget_broadcast_channel_sender
(&self)
src/peer.rs:212
Methodget_connection_id
(&self)
src/peer.rs:243
Methodget_filename
(&mut self)
src/wallet.rs:204
Methodget_fork_id
(&self)
src/blockchain.rs:78
Methodget_fork_id
(&self)
src/networking/message_types/request_blockchain_message.rs:47
Methodget_fork_id
(&self)
src/networking/message_types/request_block_message.rs:116
Methodget_has_issuance_transaction
(&self)
src/block.rs:309
Methodget_hash
(&self)
src/merkle.rs:33
Methodget_host
(&self)
src/peer.rs:237
Methodget_into_message_data
(self)
src/networking/api_message.rs:61
Methodget_is_connected_or_connecting
(&self)
src/peer.rs:234
Methodget_is_from_peer_list
(&self)
src/peer.rs:197
Methodget_issuance_transaction_idx
(&self)
src/block.rs:321
Methodget_lc
(&self)
src/wallet.rs:472
Methodget_message_data_as_string
(&self)
src/networking/api_message.rs:64
Methodget_message_name
(&self)
src/networking/api_message.rs:49
Methodget_mut_inputs
(&mut self)
src/transaction.rs:422
Methodget_port
(&self)
src/peer.rs:240
Methodget_publickey
(&self)
src/golden_ticket.rs:128
Methodget_routing_work_for_creator
(&self)
src/block.rs:338
Methodget_starting_hash
(&self)
src/networking/message_types/send_blockchain_message.rs:49
Methodget_sync_type
(&self)
src/networking/message_types/send_blockchain_message.rs:46
Methodget_target
(&self)
src/golden_ticket.rs:120
Methodget_timestamp
(&self)
src/transaction.rs:410
Methodget_utxokey
(&self)
src/wallet.rs:456
Methodhandle_peer_command
Handlers for all the network API commands, e.g. REQBLOCK.
src/peer.rs:383
Methodhandle_peer_message
handle any APIMessage from the socket. RESULT/ERROR will be matched to it's COMMAND via the ID and the Future will be polled via it's waker. Normal co
src/peer.rs:317
Methodhandshake_and_synchronize_chain
After socket has been connected, the connector begins the handshake via SHAKINIT command. Once the handshake is complete, we synchronize the peers via
src/network.rs:197
Functionhop_new_test
()
src/hop.rs:102
Functioninit_tests
()
src/test_setup.rs:3
Methodinto_response
(self)
src/networking/handlers.rs:35
Methodis_atr_transaction
(&self)
src/transaction.rs:390
Methodis_valid_solution
TODO - review exact algorithm in use here
src/golden_ticket.rs:40
Methodload_block_from_disk
(filename: String)
src/storage.rs:106
Functionload_blocks_from_another_blockchain_test
()
src/blockchain.rs:1851
← previousnext →301–400 of 495, ranked by callers