Commit graph

58 commits

Author SHA1 Message Date
Victor Shyba
8bbda75865 save_transaction_io back to a transaction 2018-10-20 16:48:02 -04:00
Victor Shyba
c497e9884a pylint 2018-10-18 18:20:09 -04:00
Victor Shyba
3b021af1bd adds a simple sqlite asyncio wrapper 2018-10-18 18:20:09 -04:00
Victor Shyba
b830f4c3ca fixes from code review 2018-10-17 19:43:26 -04:00
Lex Berezhny
0b8c67f2f0 move db.commit() 2018-10-16 21:56:50 -04:00
Lex Berezhny
a7838b80c3 removed extraneous db.commit() 2018-10-16 21:49:49 -04:00
Lex Berezhny
f2f2a12ea1 added commit() after insert/update operations 2018-10-16 21:45:59 -04:00
Lex Berezhny
c6b32fa946 basedatabase.py test coverage 2018-10-15 17:15:05 -04:00
Lex Berezhny
e10f1df321 pylint and mypy fixes 2018-10-15 17:15:05 -04:00
Lex Berezhny
2c5fd4aade twisted -> asyncio 2018-10-15 17:15:05 -04:00
Victor Shyba
55f5c7491c fixes from review for readability 2018-10-11 17:41:26 -04:00
Victor Shyba
6bdd9c9d78 optimize insert key loop 2018-10-11 17:41:26 -04:00
Victor Shyba
87c210952b enable WAL 2018-10-11 17:41:26 -04:00
Lex Berezhny
b23481bd21 add height to TXRef 2018-10-10 21:29:29 -04:00
Lex Berezhny
d4f964ef8e short circuit adding annotations when get_transaction does not return anything 2018-10-09 23:57:41 -04:00
Lex Berezhny
7f09405335 txi (txoid) index added 2018-10-09 23:39:00 -04:00
Lex Berezhny
e37da81dc6 added database indexes 2018-10-09 22:52:43 -04:00
Lex Berezhny
c60e17b341 fix LIMIT OFFSET syntax error 2018-10-09 14:44:26 -04:00
Lex Berezhny
eebfe2be08 get_address fix 2018-10-08 22:44:30 -04:00
Lex Berezhny
1d84440b74 select_txos needs a join on tx table 2018-10-08 10:53:53 -04:00
Lex Berezhny
9aa22e1071 sql: pop offset/limit/order_by when doing simple count(*) query 2018-10-08 10:37:52 -04:00
Lex Berezhny
9cea8d2725 db.get_utxos_count -> db.get_utxo_count 2018-10-07 20:14:27 -04:00
Lex Berezhny
944238d542 removed unused method and minor pylint fix 2018-10-07 14:59:27 -04:00
Lex Berezhny
95cbdcb131 refactored sql queries, added full pagination support: limit, offset and count 2018-10-07 14:53:44 -04:00
Lex Berezhny
38b1fb5fba fix get_transaction unit test 2018-10-04 19:42:29 -04:00
Lex Berezhny
fe59ed0105 remove unused import 2018-10-04 19:33:14 -04:00
Lex Berezhny
356ab9666f refactored get_transactions and get_txos 2018-10-04 19:27:39 -04:00
Lex Berezhny
0960762694 sql constraints support table.column dot delimited column names 2018-10-03 11:51:42 -04:00
Lex Berezhny
a6f97dfbde refactored queries 2018-10-03 09:41:52 -04:00
Lex Berezhny
5c5b0ace53 mypy related fix 2018-09-25 22:46:22 -04:00
Lex Berezhny
a879c822c2 check if txi.txo_ref.txo is not None before using it 2018-09-25 22:39:20 -04:00
Lex Berezhny
c29b4c476d + tx.position, + tx.net_account_balance, + txo.is_my_account 2018-09-25 18:02:50 -04:00
Lex Berezhny
53e0fe9a69 pylint fix 2018-09-21 22:26:07 -04:00
Lex Berezhny
8ed0791b26 improved db.get_transactions() 2018-09-21 22:18:30 -04:00
Lex Berezhny
0b75bb4052 + added get_transactions 2018-09-21 09:47:31 -04:00
Lex Berezhny
9e55694512 + get_detailed_accounts 2018-08-30 11:50:11 -04:00
Lex Berezhny
026bcd4d4d pylint fix 2018-08-23 02:56:25 -04:00
Lex Berezhny
a27f89157e fixed bug where txis were duplicated in the database 2018-08-23 02:53:14 -04:00
Lex Berezhny
c961dd609a pylint fixes 2018-08-16 21:46:02 -04:00
Lex Berezhny
dabedc17d0 improvements to reorg support 2018-08-16 21:41:22 -04:00
Lex Berezhny
133a86cd89 blockchain reorg handling and overall header refactor 2018-08-16 00:43:38 -04:00
Lex Berezhny
f5515e5e77 general purpose constraints builder 2018-08-03 21:26:53 -04:00
Lex Berezhny
b0bd0b1fc0 + reserving outpoints should no longer have race conditions
+ converted all comment type annotations to python 3 style syntax annotations
+ pylint & mypy
2018-07-28 20:52:54 -04:00
Lex Berezhny
25046124c0 fix balance with confirmations and header event reporting 2018-07-22 22:52:21 -04:00
Lex Berezhny
10fd654edc improved account balance support 2018-07-16 23:58:29 -04:00
Lex Berezhny
e36e4c6354 pubkey should stay as blob 2018-07-15 00:40:46 -04:00
Lex Berezhny
0f786a8c43 removed unused methods 2018-07-14 22:16:39 -04:00
Lex Berezhny
184d3a5910 switched from blob to text for most columns, added a new TXRef/TXORef referencing scheme 2018-07-14 21:34:07 -04:00
Lex Berezhny
9370b1d2fa switching most columns from blob to text 2018-07-14 17:47:51 -04:00
Lex Berezhny
5eb276655d + Transaction.liquidate, balance/get_utxos support constraints 2018-07-09 20:22:04 -04:00