Post
Topic
Board Announcements (Altcoins)
Re: [ANN][XCN] Cryptonite - NEW Thread | 1st mini-blockchain coin | Bounties!
by
gnasirator
on 03/05/2018, 23:56:00 UTC
While writing this, it gave me an idea:
@pallas: do you think it'd be possible for a wallet to sync ONLY blocks that contain my own transactions? So I could get at least a complete tx history for my own wallet? I think that'd be a nice feature to have Smiley
I'm thinking about a switch in the wallet options to enable this.

I like the idea, but I can see at least one problem: to know which blocks you need to download, you'd need to download them all, then keep only the information you need. It is a bit against the original mini blockchain concept of not needing to keep all the past blocks. But, we've seen that there is at least a use case for full blockchain: the block explorer :-)

Ah, so how does my wallet know about old transactions then without having the full blockchain?
I mean, somehow the wallet at least knows that there have been transactions to me in the past:
Quote
Now it shows my ammount of coins but in transactions - all are gray and with red flag telling "Unknown". Is it ok?
So can't we derive the block ids from that source to then download those blocks only?

I know that the proof-chain only contains the headers which consist of just the hashes of the previous block and the root of the account tree, isn't that so? So I wonder how does the wallet know about my old transactions without downloading the full chain? It doesn't know the contents but it seems to know when they were.

This is what I mean:

I've just re-started syncing from scratch and right after opening my wallet, it knew about all my past transactions. It must be possible to salvage the block ids from that?