Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions key-wallet/src/wallet/managed_wallet_info/locked_outpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::collections::BTreeSet;
/// A null collateral txid means the ProRegTx creates its collateral itself, as
/// its own output at `collateralIndex`. An index past its outputs names no coin
/// (Core rejects such a registration), so it yields `None`.
pub(crate) fn masternode_collateral(tx: &Transaction) -> Option<OutPoint> {
pub fn masternode_collateral(tx: &Transaction) -> Option<OutPoint> {
let Some(TransactionPayload::ProviderRegistrationPayloadType(registration)) =
&tx.special_transaction_payload
else {
Expand Down Expand Up @@ -144,7 +144,7 @@ impl ManagedWalletInfo {
/// Whether a funds account of this wallet holds `outpoint` as a coin. A
/// coin it keeps aside as spent counts: a fork that drops the spend gives
/// it back.
pub(crate) fn holds_coin(&self, outpoint: &OutPoint) -> bool {
pub fn holds_coin(&self, outpoint: &OutPoint) -> bool {
self.accounts
.all_funding_accounts()
.iter()
Expand Down
1 change: 1 addition & 0 deletions key-wallet/src/wallet/managed_wallet_info/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub mod fee;
pub mod helpers;
pub use helpers::AbandonOutcome;
pub(crate) mod locked_outpoints;
pub use locked_outpoints::masternode_collateral;
pub mod managed_account_operations;
pub mod managed_accounts;
pub mod transaction_builder;
Expand Down
Loading