Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Neptune-Crypto/neptune-core
/ functions
Functions
4,819 in github.com/Neptune-Crypto/neptune-core
⨍
Functions
4,819
◇
Types & classes
767
↓ 2,286 callers
Method
unwrap
convert into a JobResult. panics if job did not finish.
neptune-core/src/application/job_queue/job_completion.rs:75
↓ 2,148 callers
Method
clone
(&self)
neptune-core/src/application/locks/std/atomic_rw.rs:132
↓ 1,724 callers
Function
new
()
neptune-core/src/protocol/consensus/block/mod.rs:2463
↓ 882 callers
Method
map
Map the inner block (if any) to some result
neptune-core/src/state/mining/block_proposal.rs:49
↓ 834 callers
Function
default
(fee_nonegative: bool)
neptune-core/src/tests/shared/strategies/txkernel.rs:14
↓ 527 callers
Method
iter
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 callers
Method
push
(&mut self, tx_output: TxOutput)
neptune-core/src/state/wallet/transaction_output.rs:580
↓ 412 callers
Method
random
generates a random JobId
neptune-core/src/application/job_queue/job_id.rs:16
↓ 396 callers
Method
lock_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 callers
Method
expect
(&self, msg: &str)
neptune-core/src/state/mining/block_proposal.rs:40
↓ 293 callers
Method
header
(&self)
neptune-core/src/protocol/consensus/block/mod.rs:384
↓ 280 callers
Method
to_string
(&self, network: Network)
neptune-core-cli/src/parser/abbreviated_address.rs:16
↓ 264 callers
Method
lock_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 callers
Method
into_iter
(self)
neptune-core/src/protocol/consensus/block/difficulty_control.rs:132
↓ 205 callers
Function
now
()
neptune-core/src/application/locks/tokio/shared.rs:166
↓ 196 callers
Method
set_new_tip
store a block (non coinbase)
neptune-core/src/state/mod.rs:328
↓ 192 callers
Method
iter
(&self)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:108
↓ 190 callers
Method
len
Return the number of transactions currently stored in the Mempool. Computes in O(1)
neptune-core/src/state/mempool.rs:955
↓ 172 callers
Method
header
documented in trait. do not add doc-comment.
neptune-core/src/application/rpc/server.rs:2904
↓ 162 callers
Method
to_vec
(self)
neptune-core/src/util_types/mutator_set/removal_record/absolute_index_set.rs:121
↓ 158 callers
Method
hash
(&self, state: &mut H)
neptune-core/src/state/wallet/incoming_utxo.rs:50
↓ 152 callers
Method
cli
(&self)
neptune-core/src/state/mod.rs:349
↓ 137 callers
Method
archival_state
(&self)
neptune-core/src/state/blockchain_state.rs:44
↓ 131 callers
Method
pop
(&mut self)
neptune-core/src/application/database/storage/storage_schema/dbtvec_private.rs:325
↓ 129 callers
Method
push
(&mut self, value: V)
neptune-core/src/application/database/storage/storage_schema/dbtvec_private.rs:368
↓ 127 callers
Method
get
get transaction from mempool Computes in O(1) from HashMap
neptune-core/src/state/mempool.rs:598
↓ 121 callers
Method
body
(&self)
neptune-core/src/protocol/consensus/block/mod.rs:389
↓ 112 callers
Function
mock_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 callers
Method
iter_mut
(&mut self)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:116
↓ 109 callers
Method
to_address
returns the address that corresponds to this spending key.
neptune-core/src/state/wallet/address/addressable_key.rs:196
↓ 105 callers
Method
value
(&self)
neptune-core/src/protocol/consensus/block/block_height.rs:56
↓ 104 callers
Method
send
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 callers
Method
len
(&self)
neptune-core/src/application/database/storage/storage_schema/dbtmap.rs:54
↓ 95 callers
Method
auth
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 callers
Function
make_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 callers
Method
api
access the public Api type in immutable context
neptune-core/src/state/mod.rs:308
↓ 91 callers
Method
filter
Map the inner block (if any) to None if the predicate does not hold
neptune-core/src/state/mining/block_proposal.rs:58
↓ 91 callers
Method
insert
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 callers
Method
lock
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 callers
Method
next
(&self)
neptune-core/src/protocol/consensus/block/block_height.rs:67
↓ 80 callers
Method
append
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 callers
Method
len
(&self)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:112
↓ 75 callers
Method
set_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 callers
Method
hash
(&self)
neptune-core/src/application/json_rpc/core/model/wallet/block.rs:27
↓ 71 callers
Method
mutator_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 callers
Method
encode
(&self)
neptune-core/src/protocol/consensus/transaction/validity/neptune_proof.rs:54
↓ 68 callers
Method
get_wallet_status_for_tip
Return the wallet status relative to the current tip.
neptune-core/src/state/mod.rs:926
↓ 65 callers
Method
num_leafs
Return the number of leaves in the tree
neptune-core/src/util_types/archival_mmr.rs:56
↓ 64 callers
Method
random
(lower_bound: u64, upper_bound: u64)
neptune-core/src/application/loops/sync_loop/synchronization_bit_mask.rs:459
↓ 64 callers
Method
tip
(&self)
neptune-core/src/application/json_rpc/core/api/rpc.rs:158
↓ 63 callers
Function
commit
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 callers
Method
build
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 callers
Method
mast_path
(&self, field: Self::FieldEnum)
neptune-core/src/protocol/proof_abstractions/mast_hash.rs:41
↓ 60 callers
Method
api_mut
access the public Api in mutable context
neptune-core/src/state/mod.rs:303
↓ 59 callers
Method
into_iter
(self)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:173
↓ 58 callers
Method
len
(&self)
neptune-core/src/state/mempool/merge_input_cache.rs:64
↓ 57 callers
Function
spawn
(fut: impl Future<Output = ()> + Send + 'static)
neptune-core/src/lib.rs:126
↓ 55 callers
Method
tip
returns present blockchain tip info.
neptune-core/src/state/mod.rs:701
↓ 54 callers
Method
contains
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 callers
Method
nth_generation_spending_key_for_tests
( &self, counter: u64, )
neptune-core/src/state/wallet/wallet_entropy.rs:184
↓ 50 callers
Function
get_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 callers
Method
hash
(&self)
neptune-core/src/protocol/consensus/block/mod.rs:322
↓ 50 callers
Method
punish
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 callers
Method
hash
(&self)
neptune-core/src/util_types/mutator_set/archival_mutator_set.rs:150
↓ 49 callers
Function
pseudorandom_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 callers
Method
insert
# Panics - if the index is not less than window size
neptune-core/src/util_types/mutator_set/active_window.rs:115
↓ 48 callers
Method
with
(&self, func: F, args: Args)
neptune-core/src/state/mod.rs:717
↓ 45 callers
Method
checked_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 callers
Method
create_transaction
( &mut self, tx_outputs: TxOutputList, fee: NativeCurrencyAmount, timestamp: T
neptune-core/src/api/tx_initiation/test_util.rs:45
↓ 45 callers
Method
is_empty
(&self)
neptune-core/src/application/database/storage/storage_schema/dbtmap.rs:48
↓ 44 callers
Method
mast_hash
(&self)
neptune-core/src/protocol/proof_abstractions/mast_hash.rs:37
↓ 44 callers
Method
modify
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 callers
Function
socketaddr_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 callers
Method
tx_initiator_internal
retrieve a crate-internal transaction initiator for calling "traditional" create_transaction()
neptune-core/src/api/api_impl.rs:76
↓ 43 callers
Method
clone
(&self)
neptune-core/src/application/database/neptune_leveldb.rs:47
↓ 43 callers
Method
into_iter
(self)
neptune-core/src/protocol/consensus/transaction/primitive_witness.rs:103
↓ 43 callers
Method
nth_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 callers
Method
with_prover_capability
Configure the proving capacity.
neptune-core/src/state/transaction/tx_creation_config.rs:49
↓ 42 callers
Method
add_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 callers
Method
monitored_utxos
get monitored_utxos.
neptune-core/src/state/wallet/rusty_wallet_database.rs:142
↓ 42 callers
Method
txid
(&self)
neptune-core/src/state/mempool/mempool_update_job.rs:29
↓ 41 callers
Method
ams
(&self)
neptune-core/src/util_types/mutator_set/rusty_archival_mutator_set.rs:59
↓ 40 callers
Function
get_dummy_socket_address
(count: u8)
neptune-core/src/tests/shared/globalstate.rs:227
↓ 40 callers
Method
take
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 callers
Method
write
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 callers
Method
mempool_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 callers
Method
peaks
Return the digests of the peaks of the MMR
neptune-core/src/util_types/archival_mmr.rs:42
↓ 37 callers
Function
make_test_archival_state
(cli: &Args)
neptune-core/src/state/archival_state.rs:2436
↓ 36 callers
Method
ams_mut
(&mut self)
neptune-core/src/util_types/mutator_set/rusty_archival_mutator_set.rs:64
↓ 36 callers
Method
insert
(&mut self, index: u32)
neptune-core/src/util_types/mutator_set/removal_record/chunk.rs:55
↓ 36 callers
Method
remove
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 callers
Function
tasmlib_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 callers
Function
invalid_empty_block
(predecessor: &Block, network: Network)
neptune-core/src/tests/shared/blocks.rs:505
↓ 34 callers
Function
mock_item_and_randomnesses
()
neptune-core/src/util_types/test_shared/mutator_set.rs:52
↓ 33 callers
Method
add
(&mut self, addition_record: &AdditionRecord)
neptune-core/src/util_types/mutator_set/archival_mutator_set.rs:129
↓ 33 callers
Method
get_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 callers
Method
wallet
retrieve a transaction recipient in immutable context.
neptune-core/src/api/api_impl.rs:66
↓ 32 callers
Method
contains
check if transaction exists in mempool Computes in O(1) from HashMap
neptune-core/src/state/mempool.rs:591
↓ 32 callers
Method
get
(&self, key: &ChunkIndex)
neptune-core/src/util_types/mutator_set/removal_record/chunk_dictionary.rs:93
↓ 32 callers
Method
prove
( &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