Skip to content

Commit 096959c

Browse files
authored
Merge pull request #1 from zeptin/coldstaking
Minimal changes needed to detect cold staking cold addresses
2 parents d92900d + fe6f6e7 commit 096959c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

AddressOwnershipTool/Commands/Claim/ClaimInstruction.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public class ClaimInstruction : BaseInstruction
2929
[Option('p', "privkeyfile", Required = false, HelpText = "Please provide private key file, if used all other settings not required.")]
3030
public string PrivateKeyFile { get; set; }
3131

32+
[Option('z', "deep", Required = false, HelpText = "Perform deep scan. Generally only needed if cold staking addresses need to be included")]
33+
public bool Deep { get; set; }
34+
3235
public ClaimCommand ToCommand()
3336
{
3437
return new ClaimCommand
@@ -38,6 +41,7 @@ public ClaimCommand ToCommand()
3841
WalletName = WalletName,
3942
Testnet = Testnet,
4043
PrivateKeyFile = PrivateKeyFile,
44+
Deep = Deep,
4145
UseCirrus = UseCirrus,
4246
Destination = Destination,
4347
DataFolder = DataFolder,

AddressOwnershipTool/Common/AddressOwnershipService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public void SbfnExport(string walletName, string walletPassword, string destinat
300300

301301
public void HdAddressExport(Wallet wallet, string walletPassword, string destinationAddress, bool deepExport = false)
302302
{
303-
foreach (HdAddress address in wallet.GetAllAddresses())
303+
foreach (HdAddress address in wallet.GetAllAddresses(Wallet.AllAccounts))
304304
{
305305
if (address.Transactions.Count == 0 && !deepExport)
306306
continue;

0 commit comments

Comments
 (0)