-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SQLite to store wallet state (#7)
* Use an SQlite3 database to store accounts, addresses, transactions, coins and pending transactions locally * The database is synced with the blockchain using the syncacc command * Add a configuration file to specify a different API host, the gap value and batching values * Account and transaction import/export are in separate commands * Pending transactions now properly lock the coins they spend * Improved internal address management
- Loading branch information
Showing
32 changed files
with
5,809 additions
and
3,639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Network.Haskoin.Wallet | ||
import Haskoin.Wallet.Main | ||
|
||
main :: IO () | ||
main = clientMain | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module Haskoin.Wallet | ||
( module Amounts, | ||
module Commands, | ||
module Config, | ||
module Database, | ||
module Entropy, | ||
module FileIO, | ||
module Parser, | ||
module Signing, | ||
module TxInfo, | ||
module Util, | ||
) | ||
where | ||
|
||
import Haskoin.Wallet.Amounts as Amounts | ||
import Haskoin.Wallet.Commands as Commands | ||
import Haskoin.Wallet.Config as Config | ||
import Haskoin.Wallet.Database as Database | ||
import Haskoin.Wallet.Entropy as Entropy | ||
import Haskoin.Wallet.FileIO as FileIO | ||
import Haskoin.Wallet.Parser as Parser | ||
import Haskoin.Wallet.Signing as Signing | ||
import Haskoin.Wallet.TxInfo as TxInfo | ||
import Haskoin.Wallet.Util as Util |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.