Bitcoin Forum
July 28, 2024, 07:14:23 PM *
News: Help 1Dq create 15th anniversary forum artwork.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Coming soon : More orderly sync/ reset/ import. Close Wallet. Smaller download.  (Read 2240 times)
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
March 31, 2013, 11:59:21 AM
Last edit: April 01, 2013, 07:40:10 PM by jim618
 #1

I am about half way through introducing a "ReplayManager" that will improve synchronising, resetting the blockchain and private key imports in MultiBit.

You can get an idea with this screenshot:


Here you can see a 'deleteMe' wallet that is 76% of the way through a sync - due to an earlier 'reset blockchain and transactions'. The wallet 'deleteMe2' has just done an import of some keys and is queued up to wait for the first task to finish. When the first task completes the one that is waiting will start.

You can use the other wallets whilst the busy wallets are waiting/ syncing.
You can queue up one task per wallet.
The busy wallets have various buttons disabled - for instance you cannot do a send whilst it is working out what the wallet balance is.

There are some other things that having this ReplayManager enable:

DONE
+ when you open a wallet it'll sync from the last block the wallet saw.
+ you'll be able to close wallets (since they will resync properly when you open them)
+ better sync on start up for if you have out of date wallets.

FUTURE WORK
+ later on when Trezor/ HD wallets come on stream syncing will be smoother. You should be able to plug in your Trezor and it will sync in the background.

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
April 01, 2013, 07:17:30 PM
Last edit: April 01, 2013, 07:45:50 PM by jim618
 #2

I am now more-or-less feature complete on the ReplayManager work.

There is now a "File | Close Wallet":



When you close a wallet it stores the height of the blockchain it last saw.
Then when you open it again in the future it knows it is out of date and syncs it automatically.

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
April 01, 2013, 07:44:30 PM
 #3

Also, whilst I think about it:

One of the improvements in bitcoinj v0.8 is the ability to add a small checkpoint file (12 KB) rather than every block header that I have been shipping so far. The blockchain headers are now 24.4 MB.

It drops the installer size from about 30 MB to 12 MB.

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
Coincrazy
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 11, 2013, 07:08:37 PM
 #4

I am now more-or-less feature complete on the ReplayManager work.

There is now a "File | Close Wallet":

https://multibit.org/postImages/fileMenu.png

When you close a wallet it stores the height of the blockchain it last saw.
Then when you open it again in the future it knows it is out of date and syncs it automatically.


Hi Jim

why do you have that delete wallet function on the menu ? to me that seems scary ...what IF some one presses that button accidentally ? what is lost and what is recoverable ?

jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
April 11, 2013, 07:23:50 PM
 #5

There is a confirmation screen after you press delete - it won't delete it immediately.

Sometimes people want to delete a wallet for privacy reasons.
It will delete it permanently from your machine - it writes over the bytes with nonsense bytes before deleting it.

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
April 11, 2013, 10:32:15 PM
 #6

To make it less likely you accidentally delete a wallet I have put a challenge question in the 'Delete confirm' dialog:



It is a check just to make you stop and think. Also, perhaps your infant is playing around with your computer. If you don't know the creator of Bitcoin I figure you shouldn't be deleting wallets.

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
Coincrazy
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 12, 2013, 04:29:08 AM
 #7

To make it less likely you accidentally delete a wallet I have put a challenge question in the 'Delete confirm' dialog:

https://multibit.org/postImages/confirmDelete.png

It is a check just to make you stop and think. Also, perhaps your infant is playing around with your computer. If you don't know the creator of Bitcoin I figure you shouldn't be deleting wallets.

the challenge question is a good idea .

MY 2 C worth Jim

do NOT delete / allow deleting a wallet IF it has even 0.000001 bitcoin in it. only 0 wallets should be deletable





Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!