Skip to content

Commit

Permalink
Merge pull request #1 from zeptin/coldstaking
Browse files Browse the repository at this point in the history
Minimal changes needed to detect cold staking cold addresses
  • Loading branch information
fenix2222 authored Apr 4, 2024
2 parents d92900d + fe6f6e7 commit 096959c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions AddressOwnershipTool/Commands/Claim/ClaimInstruction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class ClaimInstruction : BaseInstruction
[Option('p', "privkeyfile", Required = false, HelpText = "Please provide private key file, if used all other settings not required.")]
public string PrivateKeyFile { get; set; }

[Option('z', "deep", Required = false, HelpText = "Perform deep scan. Generally only needed if cold staking addresses need to be included")]
public bool Deep { get; set; }

public ClaimCommand ToCommand()
{
return new ClaimCommand
Expand All @@ -38,6 +41,7 @@ public ClaimCommand ToCommand()
WalletName = WalletName,
Testnet = Testnet,
PrivateKeyFile = PrivateKeyFile,
Deep = Deep,
UseCirrus = UseCirrus,
Destination = Destination,
DataFolder = DataFolder,
Expand Down
2 changes: 1 addition & 1 deletion AddressOwnershipTool/Common/AddressOwnershipService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void SbfnExport(string walletName, string walletPassword, string destinat

public void HdAddressExport(Wallet wallet, string walletPassword, string destinationAddress, bool deepExport = false)
{
foreach (HdAddress address in wallet.GetAllAddresses())
foreach (HdAddress address in wallet.GetAllAddresses(Wallet.AllAccounts))
{
if (address.Transactions.Count == 0 && !deepExport)
continue;
Expand Down

0 comments on commit 096959c

Please sign in to comment.