Commit Graph
868 Commits
Author SHA1 Message Date
YostraandGene Hoffman 3d27a7d660 Use TLS Certificate hash as node id ssl id (#740)
* create CA

* create CA chain, pin public, private, auth

* build scripts

* refactor rpc

* test logging
2021-02-04 01:27:59 -08:00
Gene HoffmanandGene Hoffman 41161e9e19 Comment out test_mempool_performance 2021-02-04 01:27:59 -08:00
Almog De PazandGene Hoffman 2d99aa4224 fix double sub_epoch_summary append (#818)
* fix double sub_epoch_summary append
2021-02-04 01:27:59 -08:00
YostraandGene Hoffman b1d5154b21 fix test (#809)
* fix test

* comments
2021-02-04 01:27:59 -08:00
Mariano SorgenteandGene Hoffman 30008be00a Improve sync store 2021-02-04 01:27:59 -08:00
Mariano SorgenteandGene Hoffman 386da02256 Fix test 2021-02-04 01:27:59 -08:00
Mariano SorgenteandGene Hoffman 63924f8188 Improve mempool performance 2021-02-04 01:27:59 -08:00
Mariano SorgenteandGene Hoffman efc6156fdf Rename some methods 2021-02-04 01:27:59 -08:00
Almog De PazandGitHub 96d682179a Persist sub epoch segments (#745)
* add fields to sub_records
dont keep all sub_blocks in mem
dont load all known sub_blocks on strat

* add fields to sub_records
dont keep all sub_blocks in mem
dont load all known sub_blocks on strat

* add sub_epoch_summary column to db

* fix bug on warmup

* weight proof, fetch old blocks from db

* naming

* correct warmup

* merge fixes

* wallet changes

* merge fixes, wallet tests passing

* clean redundant var

* weight proof cache fix

* wallet api merge fix

* fix tests failing do to merge

* merge dev

* fix full node store merge

* merge dev

* wallet merge fix

* extend test timeout

* remove redundant code after merge

* add peak height to log

* remove field from sub_block

* fix and add extend proof test,rebase

* fix lint issues

* remove redundant test

* pr fixes

* persist sub epoch segments

* handle blockcache

* create segments

* refactor

* fix warmup bug, clean after each sync batch

* switch to assert

* refactor

* create segments as we go

* increase max samples

* fix stores,refactor

* fix merge

* remove duplicate code

* change logs to debug

* remove logs

* Revert "remove duplicate code"

This reverts commit aef0f20a

* remove code from interface

* fix wallet sql
2021-01-26 12:08:10 -08:00
Mariano SorgenteandGitHub 4156c34cd6 Change sync logic: backtrack sync and batch sync, fix bugs (#737)
Improve sync and fix issues with sub block record cache
2021-01-26 23:38:39 +09:00
Almog De PazandGitHub 4aa8028472 Refactor sub blocks (#663)
dont keep all sub blocks in mem, dont load all known sub blocks on start
2021-01-25 20:31:24 +02:00
YostraandGene Hoffman 10cdedf702 optional 2021-01-24 21:50:01 -08:00
YostraandGene Hoffman 1d01b3b0c6 make sure synced 2021-01-24 21:50:01 -08:00
YostraandGene Hoffman b3575a2f48 rpc for tx count and get initial frz period 2021-01-24 21:50:01 -08:00
YostraandGene Hoffman af1cc46b26 tests & working 2021-01-24 21:50:01 -08:00
fchiricaandGene Hoffman e80467f381 Fix super linter issues. 2021-01-22 13:49:42 -08:00
fchiricaandGene Hoffman 252066de7a nits, add test. 2021-01-22 13:49:42 -08:00
Almog De PazandGitHub d360dd084a fix extend (#736)
* fix extend

* lint
2021-01-22 11:38:22 -06:00
Mariano SorgenteandGene Hoffman 82427b34ad Maybe decrease loading 2021-01-19 22:25:45 -08:00
Mariano SorgenteandGene Hoffman 76426b3e32 Speed up tests 2021-01-19 22:25:45 -08:00
YostraandGene Hoffman fe3437d0a4 out 2021-01-19 21:40:13 -08:00
YostraandGene Hoffman 3cdae1b8df test standard tx * 1000 2021-01-19 21:40:13 -08:00
Mariano SorgenteandGene Hoffman b82f3ba8a2 Optimize mempool tests 2021-01-19 18:22:43 -08:00
Mariano SorgenteandGene Hoffman 0afe5dc55f Fix test flakiness and improve full node tests speed 2021-01-19 18:22:43 -08:00
YostraandGene Hoffman 2490e64413 add lock for cache 2021-01-19 18:15:28 -08:00
YostraandGene Hoffman 8652e10016 15 sec 2021-01-19 18:15:28 -08:00
YostraandYostra c1c237c4a8 expected requests 2021-01-19 16:29:19 -05:00
Mariano SorgenteandGene Hoffman 3d7d8a49ab Fix test and flake8 2021-01-19 10:53:04 -08:00
Mariano SorgenteandGene Hoffman 927e0d6913 Fix prevalidation and optimize some tests 2021-01-19 10:53:04 -08:00
Mariano SorgenteandGene Hoffman eed61d0dbf Prevalidate transactions 2021-01-19 10:53:04 -08:00
Mariano SorgenteandGene Hoffman 42871be6b4 Cache npc list and cost results 2021-01-19 10:53:04 -08:00
YostraandGene Hoffman 4a9254a213 cleanup 2021-01-18 14:01:25 -08:00
Gene HoffmanandGene Hoffman 2486cceccd rename test to bech32m and place in wallet test run 2021-01-18 11:49:14 -08:00
mattandGene Hoffman 55e8bdf0e3 fix rl_tests to use bech32m name 2021-01-18 11:49:14 -08:00
mattandGene Hoffman 86c17ee06c replace chech32m with bech32m 2021-01-18 11:49:14 -08:00
mattandGene Hoffman a758587b58 remove unused imports 2021-01-18 11:49:14 -08:00
mattandGene Hoffman 1fcec881cb rename to check32m
add tests
2021-01-18 11:49:14 -08:00
YostraandGene Hoffman d146278a51 test with generator that stalled the chain 2021-01-17 02:11:18 -08:00
Mariano SorgenteandGene Hoffman bb4c6c2f69 Fix test 2021-01-16 20:32:42 -08:00
Mariano SorgenteandGene Hoffman 26391b72c3 Revert change to sub block record, but keep the RPC api 2021-01-13 17:07:05 -08:00
Gene HoffmanandGene Hoffman 99503adcbf Other wallet test timeout to 100 2021-01-13 16:58:21 -08:00
Gene HoffmanandGene Hoffman 148916a155 wallet_sync timeout to 100s 2021-01-13 16:58:21 -08:00
Mariano Sorgente a940b52fa9 Add coinbase rewards to sbr to support GUI features 2021-01-14 08:19:13 +09:00
Will Bendick ffbe0ed73d formatting for black 2021-01-13 14:15:03 -08:00
Will Bendick 57dd455a61 formatting for flake8 2021-01-13 14:15:03 -08:00
Will Bendick e2ea4095a1 restores rl wallet rpc tests 2021-01-13 14:15:03 -08:00
Will Bendick edbc049685 restores incorrectly reverted code 2021-01-13 14:15:03 -08:00
58b52a9091 Ms.multiprocessing2 (#665)
* Ms.bug fixes (#615)

* on_disconnect callback called if present, for services (full_node, farmer, etc) when a connection is closed
* connections added or removed are reflected in UI
* No migration of wallet full node peer
* More blockchain_transaction tests re-enabled
* Blockchain tests uncommented
* get_block_peak fixed in blockchain.py
* Reduce some logging in tests, and asynciosqlite logs suppressed for the DEBUG level

* Assert fee test

* Re-enable tx tests

* Don't log errors on task cancel

* More full node tests

* Add test and fix edge case for first sub slot

* More tests

* Multiprocessing for block validation

* Fix issue where sub slot is not present

* More bug fixes / tests

* continue

* test for multiprocessing

* Implement sync

* Change cpu count

* Fix lint

* Tweaks

* fix teardownn issue

* Fix issue where sub slot is not present

* Another bug fix and more logging

* Fix test

* Try to fix the other test

* Same store fix as in dev

* Fix import for tests

* Fix tests

* Fix test

* Increase test timeout

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2021-01-13 13:44:33 -08:00
Mariano SorgenteandYostra fcc4d119b8 Fix double spend issue in reorgs 2021-01-13 14:57:51 -05:00
Florin ChiricaandGene Hoffman daf1c9db39 Typo. 2021-01-13 09:36:30 -08:00