Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wallet outputs not being correctly marked as Unspent #1905

Closed
yeastplume opened this issue Nov 1, 2018 · 0 comments
Closed

Wallet outputs not being correctly marked as Unspent #1905

yeastplume opened this issue Nov 1, 2018 · 0 comments
Labels

Comments

@yeastplume
Copy link
Member

From a wallet pre-restore:

Transaction Log - Account 'consolidate' - Block Height: 20548
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                      
 Id  Type         Shared Transaction Id                 Creation Time        Confirmed?  Confirmation Time    Num.    Num.     Amount    Amount   Fee   Net         Tx                                                         
                                                                                                              Inputs  Outputs  Credited  Debited        Difference  Data                                                       
=========================================================================================================================================================================                                                      
 0   Received Tx  32609716-a316-49e2-93d6-1e4fe17af8db  2018-10-25 19:31:38  true        2018-10-25 19:37:34  0       1        10000.0   0.0      None  10000.0     None                                                       
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                      
 1   Confirmed    None                                  2018-10-25 19:37:34  true        2018-10-25 19:37:34  0       1        60.0      0.0      None  60.0        None                                                       
     Coinbase                                                                                                                                                                                                                  
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                      
 2   Received Tx  6e76c33a-eb15-4db0-affc-dee068d74985  2018-10-25 19:39:11  true        2018-10-25 19:41:28  0       1        40000.0   0.0      None  40000.0     None                                                       
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                      
 3   Confirmed    None                                  2018-10-25 19:41:52  true        2018-10-25 19:41:52  0       1        60.0      0.0      None  60.0        None                                                       
     Coinbase                                                                                                                                                                                                                  
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                      
 4   Received Tx  412b30f8-3a60-43fd-ba44-df6393feb2de  2018-10-25 19:42:46  false       None                 0       1        2320.0    0.0      None  2320.0      None                                                       
------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

And post-restore:

Transaction Log - Account 'account_1' - Block Height: 20548
-----------------------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                                             
 Id  Type                Shared Transaction Id  Creation Time        Confirmed?  Confirmation Time    Num.    Num.     Amount    Amount   Fee   Net         Tx                                                                                                                                                                
                                                                                                      Inputs  Outputs  Credited  Debited        Difference  Data                                                                                                                                                              
=================================================================================================================================================================                                                                                                                                                             
 0   Confirmed Coinbase  None                   2018-11-01 10:17:12  true        2018-11-01 10:17:12  0       1        60.0      0.0      None  60.0        None                                                                                                                                                              
-----------------------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                                             
 1   Received Tx         None                   2018-11-01 10:17:12  true        2018-11-01 10:17:12  0       1        10000.0   0.0      None  10000.0     None                                                                                                                                                              
-----------------------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                                             
 2   Received Tx         None                   2018-11-01 10:17:12  true        2018-11-01 10:17:12  0       1        40000.0   0.0      None  40000.0     None                                                                                                                                                              
-----------------------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                                             
 3   Confirmed Coinbase  None                   2018-11-01 10:17:12  true        2018-11-01 10:17:12  0       1        60.0      0.0      None  60.0        None                                                                                                                                                              
-----------------------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                                             
 4   Received Tx         None                   2018-11-01 10:17:12  true        2018-11-01 10:17:12  0       1        2320.0    0.0      None  2320.0      None                                                                                                                                                              
-----------------------------------------------------------------------------------------------------------------------------------------------------------------  

Notice the last tx is confirmed=false on the pre-restore version, and true on the post-restore version. Since restore pulls outputs right from the chain, its version is most likely the accurate one. Therefore the output should be being marked as unspent in the original wallet during an update, but isn't for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants