ghassmo
|
af8851aaa4
|
call wallet init_db() function when cashier daemon start
|
2021-09-08 17:16:15 +03:00 |
|
ghassmo
|
5fe2970827
|
refactoring and cleaning up functions inside cashierdb
|
2021-09-08 17:01:17 +03:00 |
|
ghassmo
|
48a058f16b
|
client notify cashier once receive Coin and successfully decrypted
|
2021-09-08 15:18:00 +03:00 |
|
ghassmo
|
7d1d97c5ba
|
Add a function to cashierdb to get all withdraws private keys and a
function to delete withdraws keys records by btc address
|
2021-09-08 15:16:06 +03:00 |
|
ghassmo
|
d32884c75a
|
clean up mint_dbtc function in cashier service
|
2021-09-08 01:39:01 +03:00 |
|
ghassmo
|
126decbd94
|
Client: minor changes
|
2021-09-08 01:38:27 +03:00 |
|
ghassmo
|
4f0ab6e569
|
remove keys related functions in cashierdb and remove keys table from cashierdb's schema. cashier no longer handle private and public keys
|
2021-09-08 01:30:00 +03:00 |
|
ghassmo
|
4fe2138dfd
|
remove warning messages
|
2021-09-08 01:29:16 +03:00 |
|
ghassmo
|
4b494624d0
|
move duplicate functions in walletdb and cashierdb to walletapi
|
2021-09-08 01:14:38 +03:00 |
|
ghassmo
|
1ac21e5c5b
|
Client: add send function and send the tx with a desired inputs and outputs according to the amount
|
2021-09-07 22:46:42 +03:00 |
|
ghassmo
|
bb290b1fb6
|
make OwnCoin struct instead of tuple
|
2021-09-07 22:36:25 +03:00 |
|
ghassmo
|
4e607b2696
|
add keypair to cashier wallet when call key_gen() function
|
2021-09-07 22:33:51 +03:00 |
|
ghassmo
|
493c5fb2f9
|
add more errors to ClientField enum
|
2021-09-07 22:32:39 +03:00 |
|
ghassmo
|
98042a3e90
|
fix a bug in cashierdb test
|
2021-09-07 20:16:07 +03:00 |
|
ghassmo
|
33ae156f3c
|
create WalletApi trait and implement it for both cashierdb and walletdb
|
2021-09-07 15:28:21 +03:00 |
|
ghassmo
|
c1b145517f
|
cargo fmt
|
2021-09-07 12:45:37 +03:00 |
|
ghassmo
|
c4aa2bab33
|
add test cases to cashierdb
|
2021-09-07 12:44:48 +03:00 |
|
ghassmo
|
e9bbba839c
|
unify the order of keypair inside cashierdb
|
2021-09-07 12:41:57 +03:00 |
|
ghassmo
|
8463e9c3a7
|
fix typo in walletdb destroy function
|
2021-09-07 12:39:03 +03:00 |
|
ghassmo
|
ca438923b0
|
change the way of constructing both walletdb and cashierdb
|
2021-09-07 11:50:12 +03:00 |
|
ghassmo
|
7a0c98682a
|
key_gen() generating new keypair and add them to walletdb
|
2021-09-05 13:23:00 +03:00 |
|
ghassmo
|
78832bed3f
|
check from walletdb if the cashier public key is valid
|
2021-09-05 12:40:35 +03:00 |
|
ghassmo
|
4c7493acf8
|
downgrade clap crate to 2.33.3 version
|
2021-09-05 12:32:12 +03:00 |
|
ghassmo
|
491762dfa8
|
create walletdb field for state and avoid using walletdb in other places
|
2021-09-05 11:08:36 +03:00 |
|
ghassmo
|
cda82fce68
|
get witnesses and update them through walletdb
|
2021-09-05 10:15:56 +03:00 |
|
ghassmo
|
023d75c46e
|
change the paths of mint and spend params from project dir to the .config/darkfi
|
2021-09-04 15:55:04 +03:00 |
|
ghassmo
|
da8aab6c29
|
remove unused fields in WalletDb
|
2021-09-04 15:45:55 +03:00 |
|
ghassmo
|
ce56a17697
|
change the name of client rpc adapter and move it to src/rpc dir
|
2021-09-04 01:47:50 +03:00 |
|
ghassmo
|
167b3fad90
|
minor changes in client.rs
|
2021-09-04 00:38:46 +03:00 |
|
ghassmo
|
84773639e5
|
cargo fmt
|
2021-09-03 23:00:25 +03:00 |
|
ghassmo
|
e4004f5783
|
change the design of rpc adapter
|
2021-09-03 22:54:19 +03:00 |
|
ghassmo
|
23c1d0c667
|
fix typo in expect messages
|
2021-09-03 04:38:52 +03:00 |
|
ghassmo
|
864760df4a
|
Cashier: avoid generating new keypair if keys exist in cashierdb
|
2021-09-03 04:24:32 +03:00 |
|
ghassmo
|
bbbf469b3d
|
cargo fmt
|
2021-09-03 04:03:43 +03:00 |
|
ghassmo
|
6fa951b5f3
|
use debug macro instead of info for debugging & add proper name for target field in each debug macro
|
2021-09-03 03:56:27 +03:00 |
|
ghassmo
|
59436a1197
|
fix bugs in the process of withdrawing
|
2021-09-03 03:13:00 +03:00 |
|
ghassmo
|
a362e6aff5
|
add and pass needed config params to cashierd
|
2021-09-01 15:46:29 +03:00 |
|
ghassmo
|
13519a7302
|
cargo fmt
|
2021-09-01 15:08:13 +03:00 |
|
ghassmo
|
d8eeb7656f
|
Merge branch 'master' of github.com:darkrenaissance/darkfi
|
2021-09-01 15:06:33 +03:00 |
|
ghassmo
|
4d35fc0e58
|
wrap client with mutex inside cashier service
|
2021-09-01 14:59:04 +03:00 |
|
Janus
|
c21699b312
|
Use shorthand for errors and fmt
|
2021-08-31 22:14:36 -04:00 |
|
Janus
|
e0e75e7149
|
Cleanup start_subscribe for btc watching
|
2021-08-31 16:49:18 -04:00 |
|
Janus
|
a85b840af0
|
Return GetBalanceRes when scriptpubkey balance is confirmed
|
2021-08-31 11:52:10 -04:00 |
|
ghassmo
|
7283cc4ada
|
minor changes in walletdb.rs
|
2021-08-31 14:40:47 +03:00 |
|
ghassmo
|
cd07494953
|
remove cash_gen_key function from walletdb.rs
|
2021-08-31 14:32:12 +03:00 |
|
Janus
|
9f611c650c
|
Pop scriptpubkey in loop and on change check balance
|
2021-08-30 15:52:32 -04:00 |
|
ghassmo
|
b6a27a60c5
|
create Client object for CashierService
|
2021-08-30 03:10:55 +03:00 |
|
ghassmo
|
fff6827343
|
darkfid return ClientResult with a proper message instead of panic and crash
|
2021-08-30 01:06:44 +03:00 |
|
ghassmo
|
4a1ecdcbfc
|
create specific error type for client
|
2021-08-28 19:17:25 +03:00 |
|
ghassmo
|
dcd44c2a71
|
check if there are coins before transfer the coins
|
2021-08-28 15:59:42 +03:00 |
|