Commit Graph

26 Commits

Author SHA1 Message Date
ghassmo
48a058f16b client notify cashier once receive Coin and successfully decrypted 2021-09-08 15:18:00 +03:00
ghassmo
126decbd94 Client: minor changes 2021-09-08 01:38:27 +03:00
ghassmo
4fe2138dfd remove warning messages 2021-09-08 01:29:16 +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
493c5fb2f9 add more errors to ClientField enum 2021-09-07 22:32:39 +03:00
ghassmo
33ae156f3c create WalletApi trait and implement it for both cashierdb and walletdb 2021-09-07 15:28:21 +03:00
ghassmo
78832bed3f check from walletdb if the cashier public key is valid 2021-09-05 12:40:35 +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
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
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
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
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
ghassmo
8ebb0e2b7a minor changes in client.rs 2021-08-28 04:25:28 +03:00
ghassmo
a1c2ad5ee9 pass the paths for mint and spend params when initialize a Client 2021-08-28 04:02:46 +03:00
ghassmo
3bd5ffac06 cargo fix & cargo fmt 2021-08-27 17:45:19 +03:00
ghassmo
996cd04335 move all functionalities inside darkfid to a new module client/client.rs 2021-08-27 17:37:58 +03:00