matt
4e9b3c4c46
update spend test passing
2021-10-29 14:11:41 +04:00
matt
555afcdb37
remomve breakpoint from commit
2021-10-28 17:34:38 +04:00
matt
04549d0a63
fix issue with parent_info
2021-10-28 17:32:42 +04:00
almog
ada058fcdc
get add rpcs, temp add manager to dl
2021-10-27 14:58:36 +03:00
matt
16be1b86af
added test (not working) for signing root_hash update transaction
2021-10-26 16:11:21 +02:00
matt
07ab32477a
successful wallet creation
2021-10-26 12:41:47 +02:00
almog
ae2c841f70
get spendable amount from standard wallet
...
lint
2021-10-25 12:36:00 +03:00
almog
0c15cbfd8c
wip wallet
...
add methods fix vars lint
2021-10-24 17:09:40 +03:00
Kyle Altendorf
45d09e849d
Use hex-strings at the interface between the RPC client and API ( #8903 )
...
* Use hex-strings at the interface between the RCP client and API
In real usage they interact through JSON and thus cannot use
bytes objects between them. Rather, we tend to use .hex() and
hexstr_to_bytes() for the [de]serialization.
2021-10-24 16:38:04 +03:00
matt
9125be4618
end of day WIP commit - working towards parents and wallet tests
2021-10-22 19:05:31 +02:00
matt
c2e51f072b
added spend code to wallet
2021-10-22 15:12:18 +02:00
matt
4668524555
WIP wallet push
2021-10-21 19:29:47 +02:00
almog
bd1560292e
wallet wip
2021-10-21 14:15:01 +03:00
almog
a0ef021ecd
handle data_store type changes
...
fix test input
2021-10-20 16:00:26 +03:00
Kyle Altendorf
e3079bed00
data store tidy
2021-10-19 11:24:22 -04:00
Kyle Altendorf
c306e33071
pragma synchronous=FULL for the data layer
2021-10-19 10:50:01 -04:00
Kyle Altendorf
32965b8087
data layer keys and values are opaque bytes
2021-10-18 16:11:35 -04:00
Kyle Altendorf
eb315166ea
add DataStore.autoinsert()
2021-10-18 15:01:06 -04:00
Kyle Altendorf
471330b10b
INSERT OR IGNORE INTO for DataStore._insert_terminal_node()
2021-10-18 15:01:04 -04:00
Kyle Altendorf
4fa16ba23c
make DataStore.get_pairs() return ordered by depth then left-to-right
2021-10-18 15:01:01 -04:00
almog
b2e2d57f7d
tests
2021-10-18 12:42:55 +03:00
almog
c9df6d21d1
lint
2021-10-17 19:22:45 +03:00
Kyle Altendorf
073d12ad3d
isort
2021-10-15 17:14:34 -04:00
Kyle Altendorf
2f5020380a
tidy
2021-10-15 17:10:42 -04:00
Kyle Altendorf
5b86d02c10
add DataStore._check_hashes()
2021-10-15 16:12:23 -04:00
Kyle Altendorf
def95fb0ed
centralize hashing into DataStore._insert_terminal_node()
2021-10-15 15:44:27 -04:00
Kyle Altendorf
9ec37c9f41
centralize hashing into DataStore._insert_internal_node()
2021-10-15 15:33:04 -04:00
Kyle Altendorf
24b07e481c
data store tidy
2021-10-15 11:29:53 -04:00
Kyle Altendorf
b1753eaad0
data store tidy
2021-10-15 11:11:51 -04:00
Kyle Altendorf
a0cdf87545
remove DataStore tree table
2021-10-15 10:59:37 -04:00
Kyle Altendorf
4d55b9f8b8
add DataStore._check_roots_are_incrementing()
2021-10-15 10:50:42 -04:00
Kyle Altendorf
bf624f77d1
" not """
2021-10-15 09:55:27 -04:00
Kyle Altendorf
88f837d526
lint
2021-10-15 00:01:27 -04:00
Kyle Altendorf
71ac17e86f
Add some initial DataStore integrity checks
2021-10-14 23:42:50 -04:00
Kyle Altendorf
60a71f71b3
cleanup DataStore.insert() and .delete()
2021-10-14 21:53:48 -04:00
Kyle Altendorf
94246111df
add TODO:
2021-10-14 14:58:01 -04:00
Kyle Altendorf
13c2f431f1
group DataStore._insert_*()
2021-10-14 14:56:38 -04:00
Kyle Altendorf
594d885aae
factor out to DataStore._insert_internal_node() and ._insert_terminal_node()
2021-10-14 14:48:22 -04:00
Kyle Altendorf
0bc4a54e80
factor out to DataStore._insert_root()
2021-10-14 14:38:07 -04:00
Kyle Altendorf
d3614e9c43
remove a stray r
2021-10-14 13:47:39 -04:00
Kyle Altendorf
21b9416f1a
rework DataStore.get_heritage() to .get_ancestors()
2021-10-14 12:06:16 -04:00
Kyle Altendorf
88f1ea31da
drop hexstr_to_bytes32()
2021-10-13 16:08:21 -04:00
almog
23a6bc943d
add wallet to data_layer.py
2021-10-13 21:18:00 +03:00
Kyle Altendorf
22cd0927b7
preliminary DataStore.delete()
2021-10-12 20:50:42 -04:00
Kyle Altendorf
e10821c0b4
lint
2021-10-12 20:39:19 -04:00
Kyle Altendorf
e270b93d8d
make DataStore.get_node_by_key[_bytes]() tree id aware
2021-10-12 20:38:47 -04:00
Kyle Altendorf
6fdfa59486
add lock parameter to DbWrapper.locked_transaction()
2021-10-12 18:14:04 -04:00
Kyle Altendorf
a3ac331ebc
lint
2021-10-12 14:20:27 -04:00
Kyle Altendorf
57a487e72e
catch up data store with some refactors
2021-10-12 14:08:24 -04:00
almog
a52d0b4fed
lint
2021-10-12 18:49:02 +03:00