MCPcopy Create free account

hub / github.com/Neptune-Crypto/neptune-core / functions

Functions4,819 in github.com/Neptune-Crypto/neptune-core

↓ 2,286 callersMethodunwrap
convert into a JobResult. panics if job did not finish.
neptune-core/src/application/job_queue/job_completion.rs:75
↓ 2,148 callersMethodclone
(&self)
neptune-core/src/application/locks/std/atomic_rw.rs:132
↓ 1,724 callersFunctionnew
()
neptune-core/src/protocol/consensus/block/mod.rs:2463
↓ 882 callersMethodmap
Map the inner block (if any) to some result
neptune-core/src/state/mining/block_proposal.rs:49
↓ 834 callersFunctiondefault
(fee_nonegative: bool)
neptune-core/src/tests/shared/strategies/txkernel.rs:14
↓ 527 callersMethoditer
IMPORTANT: the returned iterator is NOT async. The database is queried synchrously so the caller will block. Consider using `spawn_blocking()` task
neptune-core/src/application/database/neptune_leveldb.rs:232
↓ 454 callersMethodpush
(&mut self, tx_output: TxOutput)
neptune-core/src/state/wallet/transaction_output.rs:580
↓ 412 callersMethodrandom
generates a random JobId
neptune-core/src/application/job_queue/job_id.rs:16
↓ 396 callersMethodlock_guard
Acquire read lock and return an `RwLockReadGuard` # Examples ``` # use neptune_cash::application::locks::std::{AtomicRw, traits::*}; struct Car { yea
neptune-core/src/application/locks/std/atomic_rw.rs:212
↓ 370 callersMethodexpect
(&self, msg: &str)
neptune-core/src/state/mining/block_proposal.rs:40
↓ 293 callersMethodheader
(&self)
neptune-core/src/protocol/consensus/block/mod.rs:384
↓ 280 callersMethodto_string
(&self, network: Network)
neptune-core-cli/src/parser/abbreviated_address.rs:16
↓ 264 callersMethodlock_guard_mut
Acquire write lock and return an `RwLockWriteGuard` # Examples ``` # use neptune_cash::application::locks::std::{AtomicRw, traits::*}; struct Car { y
neptune-core/src/application/locks/std/atomic_rw.rs:229
↓ 253 callersMethodinto_iter
(self)
neptune-core/src/protocol/consensus/block/difficulty_control.rs:132
↓ 205 callersFunctionnow
()
neptune-core/src/application/locks/tokio/shared.rs:166
↓ 196 callersMethodset_new_tip
store a block (non coinbase)
neptune-core/src/state/mod.rs:328
↓ 192 callersMethoditer
(&self)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:108
↓ 190 callersMethodlen
Return the number of transactions currently stored in the Mempool. Computes in O(1)
neptune-core/src/state/mempool.rs:955
↓ 172 callersMethodheader
documented in trait. do not add doc-comment.
neptune-core/src/application/rpc/server.rs:2904
↓ 162 callersMethodto_vec
(self)
neptune-core/src/util_types/mutator_set/removal_record/absolute_index_set.rs:121
↓ 158 callersMethodhash
(&self, state: &mut H)
neptune-core/src/state/wallet/incoming_utxo.rs:50
↓ 152 callersMethodcli
(&self)
neptune-core/src/state/mod.rs:349
↓ 137 callersMethodarchival_state
(&self)
neptune-core/src/state/blockchain_state.rs:44
↓ 131 callersMethodpop
(&mut self)
neptune-core/src/application/database/storage/storage_schema/dbtvec_private.rs:325
↓ 129 callersMethodpush
(&mut self, value: V)
neptune-core/src/application/database/storage/storage_schema/dbtvec_private.rs:368
↓ 127 callersMethodget
get transaction from mempool Computes in O(1) from HashMap
neptune-core/src/state/mempool.rs:598
↓ 121 callersMethodbody
(&self)
neptune-core/src/protocol/consensus/block/mod.rs:389
↓ 112 callersFunctionmock_genesis_global_state
Get a global state object for unit test purposes. This global state is populated with state from the genesis block, e.g. in the archival mutator set a
neptune-core/src/tests/shared/globalstate.rs:111
↓ 109 callersMethoditer_mut
(&mut self)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:116
↓ 109 callersMethodto_address
returns the address that corresponds to this spending key.
neptune-core/src/state/wallet/address/addressable_key.rs:196
↓ 105 callersMethodvalue
(&self)
neptune-core/src/protocol/consensus/block/block_height.rs:56
↓ 104 callersMethodsend
Send a message to the miner task (if any). Do no use the `async` `send` function because it blocks until there is spare capacity on the channel. Mess
neptune-core/src/application/loops/main_loop.rs:111
↓ 101 callersMethodlen
(&self)
neptune-core/src/application/database/storage/storage_schema/dbtmap.rs:54
↓ 95 callersMethodauth
authenticate this token against known valid token data. `valid_tokens` should be an array containing one valid token of each [Token] variant. valida
neptune-core/src/application/rpc/auth.rs:47
↓ 94 callersFunctionmake_mock_block
Build a fake block with a random hash, containing *two* outputs for the composer. Returns (block, composer-utxos).
neptune-core/src/tests/shared/blocks.rs:384
↓ 93 callersMethodapi
access the public Api type in immutable context
neptune-core/src/state/mod.rs:308
↓ 91 callersMethodfilter
Map the inner block (if any) to None if the predicate does not hold
neptune-core/src/state/mining/block_proposal.rs:58
↓ 91 callersMethodinsert
Insert a transaction into the mempool. It is the caller's responsibility to validate the transaction. The caller must also ensure that the transactio
neptune-core/src/state/mempool.rs:716
↓ 89 callersMethodlock
Immutably access the data of type `T` in a closure and possibly return a result of type `R` # Examples ``` # use neptune_cash::application::locks::st
neptune-core/src/application/locks/std/atomic_rw.rs:247
↓ 87 callersMethodnext
(&self)
neptune-core/src/protocol/consensus/block/block_height.rs:67
↓ 80 callersMethodappend
Append an element to the archival MMR, return the membership proof of the newly added leaf.
neptune-core/src/util_types/archival_mmr.rs:61
↓ 76 callersMethodlen
(&self)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:112
↓ 75 callersMethodset_new_tip
Update all of archival state with a new block which is set as tip. May also be used to set the tip back to any earlier block, including the genesis b
neptune-core/src/state/archival_state.rs:575
↓ 71 callersMethodhash
(&self)
neptune-core/src/application/json_rpc/core/model/wallet/block.rs:27
↓ 71 callersMethodmutator_set_accumulator_after
Return the mutator set as it looks after the application of this block. Includes the guesser-fee UTXOs which are not included by the `mutator_set_acc
neptune-core/src/protocol/consensus/block/mod.rs:397
↓ 69 callersMethodencode
(&self)
neptune-core/src/protocol/consensus/transaction/validity/neptune_proof.rs:54
↓ 68 callersMethodget_wallet_status_for_tip
Return the wallet status relative to the current tip.
neptune-core/src/state/mod.rs:926
↓ 65 callersMethodnum_leafs
Return the number of leaves in the tree
neptune-core/src/util_types/archival_mmr.rs:56
↓ 64 callersMethodrandom
(lower_bound: u64, upper_bound: u64)
neptune-core/src/application/loops/sync_loop/synchronization_bit_mask.rs:459
↓ 64 callersMethodtip
(&self)
neptune-core/src/application/json_rpc/core/api/rpc.rs:158
↓ 63 callersFunctioncommit
Generates an addition record from an item and explicit random- ness. The addition record is itself a commitment to the item.
neptune-core/src/util_types/mutator_set.rs:49
↓ 62 callersMethodbuild
generate the proof. if the network uses mock proofs (eg Network::RegTest), this will return immediately with a mock [Proof]. otherwise it will initi
neptune-core/src/api/tx_initiation/builder/proof_builder.rs:173
↓ 61 callersMethodmast_path
(&self, field: Self::FieldEnum)
neptune-core/src/protocol/proof_abstractions/mast_hash.rs:41
↓ 60 callersMethodapi_mut
access the public Api in mutable context
neptune-core/src/state/mod.rs:303
↓ 59 callersMethodinto_iter
(self)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:173
↓ 58 callersMethodlen
(&self)
neptune-core/src/state/mempool/merge_input_cache.rs:64
↓ 57 callersFunctionspawn
(fut: impl Future<Output = ()> + Send + 'static)
neptune-core/src/lib.rs:126
↓ 55 callersMethodtip
returns present blockchain tip info.
neptune-core/src/state/mod.rs:701
↓ 54 callersMethodcontains
Determine whether the ith bit is set. # Panics - If the limb index corresponding to the given bit index is smaller than usize::MAX.
neptune-core/src/application/loops/sync_loop/synchronization_bit_mask.rs:276
↓ 53 callersMethodnth_generation_spending_key_for_tests
( &self, counter: u64, )
neptune-core/src/state/wallet/wallet_entropy.rs:184
↓ 50 callersFunctionget_test_genesis_setup
Return a setup with empty databases, and with the genesis block set as tip. Returns: (peer_broadcast_channel, from_main_receiver, to_main_transmitter
neptune-core/src/tests/shared/globalstate.rs:167
↓ 50 callersMethodhash
(&self)
neptune-core/src/protocol/consensus/block/mod.rs:322
↓ 50 callersMethodpunish
Punish a peer for bad behavior. Return `Err` if the peer in question is (now) banned. # Locking: acquires `global_state_lock` for write
neptune-core/src/application/loops/peer_loop.rs:195
↓ 49 callersMethodhash
(&self)
neptune-core/src/util_types/mutator_set/archival_mutator_set.rs:150
↓ 49 callersFunctionpseudorandom_peer_id
Derive a pseudorandom [`PeerId`] from a [`SocketAddr`]. This is a controversial feature, with accordingly complex motivation -- bear with: This map
neptune-core/src/protocol/peer/peer_info.rs:53
↓ 48 callersMethodinsert
# Panics - if the index is not less than window size
neptune-core/src/util_types/mutator_set/active_window.rs:115
↓ 48 callersMethodwith
(&self, func: F, args: Args)
neptune-core/src/state/mod.rs:717
↓ 45 callersMethodchecked_sub
Subtract a number from a block height. NOT* implemented as trait `CheckedSub` because of type mismatch.
neptune-core/src/protocol/consensus/block/block_height.rs:99
↓ 45 callersMethodcreate_transaction
( &mut self, tx_outputs: TxOutputList, fee: NativeCurrencyAmount, timestamp: T
neptune-core/src/api/tx_initiation/test_util.rs:45
↓ 45 callersMethodis_empty
(&self)
neptune-core/src/application/database/storage/storage_schema/dbtmap.rs:48
↓ 44 callersMethodmast_hash
(&self)
neptune-core/src/protocol/proof_abstractions/mast_hash.rs:37
↓ 44 callersMethodmodify
perform move+modify operation. The input [TransactionKernel] is replaced with a copy that contains any modifications previously set in the builder.
neptune-core/src/protocol/consensus/transaction/transaction_kernel.rs:563
↓ 44 callersFunctionsocketaddr_to_multiaddr
Used in tests, but also in genesis_node.rs, which explains why this function and the module in which it is lived is marked `pub`.
neptune-core/src/application/config/parser/multiaddr.rs:58
↓ 44 callersMethodtx_initiator_internal
retrieve a crate-internal transaction initiator for calling "traditional" create_transaction()
neptune-core/src/api/api_impl.rs:76
↓ 43 callersMethodclone
(&self)
neptune-core/src/application/database/neptune_leveldb.rs:47
↓ 43 callersMethodinto_iter
(self)
neptune-core/src/protocol/consensus/transaction/primitive_witness.rs:103
↓ 43 callersMethodnth_generation_spending_key
derives a generation spending key at `index` note: this is a read-only method and does not modify wallet state. When requesting a new key for purpos
neptune-core/src/state/wallet/wallet_entropy.rs:98
↓ 43 callersMethodwith_prover_capability
Configure the proving capacity.
neptune-core/src/state/transaction/tx_creation_config.rs:49
↓ 42 callersMethodadd_expected_utxos
If any output UTXO(s) are going back to our wallet (eg change utxo) we add them to pool of expected incoming UTXOs so that we can synchronize them aft
neptune-core/src/state/wallet/wallet_state.rs:716
↓ 42 callersMethodmonitored_utxos
get monitored_utxos.
neptune-core/src/state/wallet/rusty_wallet_database.rs:142
↓ 42 callersMethodtxid
(&self)
neptune-core/src/state/mempool/mempool_update_job.rs:29
↓ 41 callersMethodams
(&self)
neptune-core/src/util_types/mutator_set/rusty_archival_mutator_set.rs:59
↓ 40 callersFunctionget_dummy_socket_address
(count: u8)
neptune-core/src/tests/shared/globalstate.rs:227
↓ 40 callersMethodtake
Build the list of transaction inputs, taking `number`-many inputs after after filtering out policy-incompliant UTXOs and after sorting by priority.
neptune-core/src/api/tx_initiation/builder/input_selector.rs:361
↓ 40 callersMethodwrite
Write the WriteBatch to database atomically The sync flag forces filesystem sync operation eg fsync which will be slower than async writes, which are
neptune-core/src/application/database/leveldb.rs:220
↓ 38 callersMethodmempool_insert
adds Tx to mempool and notifies wallet of change. value represents the value that the transaction has to caller.
neptune-core/src/state/mod.rs:3251
↓ 38 callersMethodpeaks
Return the digests of the peaks of the MMR
neptune-core/src/util_types/archival_mmr.rs:42
↓ 37 callersFunctionmake_test_archival_state
(cli: &Args)
neptune-core/src/state/archival_state.rs:2436
↓ 36 callersMethodams_mut
(&mut self)
neptune-core/src/util_types/mutator_set/rusty_archival_mutator_set.rs:64
↓ 36 callersMethodinsert
(&mut self, index: u32)
neptune-core/src/util_types/mutator_set/removal_record/chunk.rs:55
↓ 36 callersMethodremove
remove a transaction from the `Mempool` Does nothing if the transaction cannot be found in the mempool.
neptune-core/src/state/mempool.rs:905
↓ 36 callersFunctiontasmlib_hashing_merkle_verify
Verify a Merkle tree membership claim using the nondeterministically supplied digests as authentication path. Crashes the VM if verification fails.
neptune-core/src/protocol/proof_abstractions/tasm/builtins.rs:200
↓ 35 callersFunctioninvalid_empty_block
(predecessor: &Block, network: Network)
neptune-core/src/tests/shared/blocks.rs:505
↓ 34 callersFunctionmock_item_and_randomnesses
()
neptune-core/src/util_types/test_shared/mutator_set.rs:52
↓ 33 callersMethodadd
(&mut self, addition_record: &AdditionRecord)
neptune-core/src/util_types/mutator_set/archival_mutator_set.rs:129
↓ 33 callersMethodget_native_currency_amount
Get the amount of native currency that are encapsulated in this UTXO, regardless of which other coins are present. (Even if that makes the native curr
neptune-core/src/protocol/consensus/transaction/utxo.rs:172
↓ 33 callersMethodwallet
retrieve a transaction recipient in immutable context.
neptune-core/src/api/api_impl.rs:66
↓ 32 callersMethodcontains
check if transaction exists in mempool Computes in O(1) from HashMap
neptune-core/src/state/mempool.rs:591
↓ 32 callersMethodget
(&self, key: &ChunkIndex)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:93
↓ 32 callersMethodprove
( &self, item: Digest, sender_randomness: Digest, receiver_preimage: Digest,
neptune-core/src/util_types/mutator_set/archival_mutator_set.rs:104
next →1–100 of 4,819, ranked by callers