Hi Andreas, thanks for replying. So, if I have a wallet with birthday 100 and at time 200 want to add an address with date 198, I have to load all back from 100? Now if I add an address with date 90, does the wallet update its "birthday" accordingly or do I have to also do something beyond the individual address creation dates?
How hard do you think it would be to improve bitcoinJ in that respect? Do you see interest with others to implement something like that? Do you see interest to merge it, if I implemented it with tests and all? Regards, Leo On Thursday, 27 April 2017 16:51:13 UTC-3, Andreas Schildbach wrote: > > Partial reset has never been implemented. Currently you always need to > sync from the wallet birthdate. > > > On 04/26/2017 10:32 PM, Leo Wandersleb wrote: > > Hi, > > > > occasionally my app needs to add addresses with past, non-zero creation > > times. > > > > I figured, iterating through the block headers until creation-time - 4h > > and feeding that block height to |public void clearTransactions(int > > fromHeight)| should trigger the resync but throws an error > > < > https://github.com/bitcoinj/bitcoinj/blob/master/core/src/main/java/org/bitcoinj/wallet/Wallet.java#L3002> > > > > in a way that I would at least expect a comment or TODO on that line. > > Is there another way to achieve what I want to achieve? > > > > Regards, > > > > Leo Wandersleb > > > > -- > > You received this message because you are subscribed to the Google > > Groups "bitcoinj" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to [email protected] <javascript:> > > <mailto:[email protected] <javascript:>>. > > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
