Update the wallet best block marker when pruning #7502
pull sipa wants to merge 1 commits into bitcoin:master from sipa:betterflush changing 1 files +1 −1- 
  
  sipa commented at 2:48 pm on February 10, 2016: memberWhen pruning, make sure that we update the wallet best block before deleting any files.
- 
    
    laanwj added the label Wallet on Feb 10, 2016
- 
    
    Update the wallet best block marker when pruning e4eebb604e
- 
    
    sipa force-pushed on Feb 10, 2016
- 
    
    sipa renamed this:
 Update the wallet best block marker before pruning
 Update the wallet best block marker when pruning
 on Feb 10, 2016
- 
  
  sipa commented at 4:13 pm on February 10, 2016: memberUpdated the logic to just always update the wallet best block when the chainstate is flushed. Both are relatively slow operations, so this shouldn’t have a strong effect on performance. There are further problems with the flushing logic, which will require a more invasive change, but those problems can only trigger when a crash during flushing happens. 
- 
  
  morcos commented at 4:21 pm on February 10, 2016: memberutACK
- 
  
  sdaftuar commented at 4:22 pm on February 10, 2016: memberutACK. Needs backport!
- 
    
    laanwj added the label Needs backport on Feb 10, 2016
- 
    
    laanwj merged this on Feb 10, 2016
- 
    
    laanwj closed this on Feb 10, 2016
 
- 
    
    laanwj referenced this in commit b93f078496 on Feb 10, 2016
- 
    
    laanwj referenced this in commit 1329963001 on Feb 10, 2016
- 
  
  laanwj commented at 7:35 pm on February 10, 2016: memberCherry-picked to 0.12 as 13299630013411b1a9c77d2332f9d2d45eacde0f
- 
    
    laanwj removed the label Needs backport on Feb 10, 2016
- 
    
    MarcoFalke locked this on Sep 8, 2021
        
        
            
                
                github-metadata-mirror
            
            
            
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-10-31 18:13 UTC
        
    
    This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-10-31 18:13 UTC
        
            This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me