Bitcoin Forum

Bitcoin => BitcoinJ => Topic started by: jonas.schnelli on February 11, 2014, 02:53:21 PM



Title: idea to save power/memory consumption
Post by: jonas.schnelli on February 11, 2014, 02:53:21 PM
Hi

While developing MacWallet, i'm trying to focus on low memory, cpu (~=energy) usage.
I just had the idea, of closing and reopening the peer-group.

Idea:
1) Let's say, User is using a wallet app which runs all the time in background.
2) To save CPU/energy, the peerGroup will be closed when the blockchain has fully synced
3) After every 10 minutes (TBD, configurable), the peer group will be reopened and the local blockchain will catch up. New payment's may come in and user gets informed
4) If users sends a payment, peer group will be reopened and tx will be sent to at least 4 nodes (might take some seconds)

Drawback is of course that the arriving payments won't come in immediately and that sending payment might take some time.

Bad idea, critics?