Commit Graph

1071 Commits

Author SHA1 Message Date
Richard Kiss 1c07dd2c19 Skip the softfork test. (#1357) 2021-03-17 18:40:45 -07:00
Richard Kiss da57397087 Change rewards coin ids 2 (#1342)
Replay protection by encoding genesis challenge into coinbase parent ids. 

Co-authored-by: Yostra <straya@chia.net>
2021-03-17 18:40:45 -07:00
almog 4835964515 lint add test 2021-03-17 00:00:13 +09:00
almog 092142cdd3 lint add test 2021-03-17 00:00:13 +09:00
Mariano Sorgente 764d425b95
Don't use the cache to get transactions (#1301)
* Don't use the cache to get transactions

* Increase timeout
2021-03-15 13:48:01 -07:00
Almog De Paz a499127743
Fix signage point input and recent blocks deficit (#1304)
* fix challenge overflow first in slot

* fix deficit calc, in recent blocks

* use vdf info instead of proof to figure out end of slot

* lint
2021-03-15 13:11:08 -07:00
Mariano 783a8c65eb Fix rpc for setting farming addresses 2021-03-15 19:06:09 +09:00
Gene Hoffman 4697e39470
Various clean ups, spelling thanks @adamfiddler, isort (#1278)
* Various clean ups, spelling thanks @adamfiddler, isort

* Actually thank @adamfiddler

* isort tests

* Update changelog, readme, spec, spelling

* Readme nit

* locales

* locales again
2021-03-13 14:57:41 -08:00
Yostra 708ddb5a3a
Minimum for refs (#1256)
* minimun for refs

* Commit to generator reference list value in the foliage

* missing args

* Insert generator references hash in foliage

* add comma.

* Add 3 commas for linter

* lint: commas

* kick the tests to run again

* 23

Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-03-11 22:59:15 -08:00
Yostra d1f037be8a
Wallet Address (#1253)
* use current addressg

* keep track of current

* fix wallet test

* cmd
2021-03-11 19:36:28 -08:00
Adam Kelly 68c1493e54
Change coin ids (#1225)
* change to coin ID calculation

* Generator_for_single_coin uses coin info to generate coin IDs live

* update sha256tree of generator for single coin

* Update changelog for more stringent coin ID calculation

Co-authored-by: matt <matt@chia.net>
Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-03-11 18:58:16 -08:00
Yostra 9b4710ff1b
encoded (#1251) 2021-03-11 14:27:40 -08:00
Almog De Paz 725e145151
recent chain refactor (#1237)
* wp refactor changes
2021-03-11 14:24:59 +02:00
Mariano Sorgente 698ae6d542
Ms.timelord improvements (#1234)
* Start work on timelord fixes

* Send correct peak to timelords in case of error

* Don't change cost

* Only re-send peak to the bad timelord, and fix test
2021-03-11 19:08:31 +09:00
Mariano 530056039b Fix test 2021-03-11 17:43:00 +09:00
Yostra 398f4768c1
Network wait (#1218)
* don't use gen challenge

* service wait for gen

* FullNode, Timelord wait

* Don't disconnect if receiving disconnected VDF

* Fix test

* api for ui, start wallet but delay wallet_blockchain init

* rebase cleanup

Co-authored-by: Mariano <sorgente711@gmail.com>
2021-03-10 15:43:02 -08:00
Almog De Paz 255bbb14af
Weight proof optimizations (#1221)
* sub epoch samples optimizations, tests passing

* refactor

* fix sample validation

* fix indentation

* refactor

* dynamic recent chain

* logs

* revert dynamic recent chain

* dynamic recent chain

* tidy

* lint

* fix merge
2021-03-10 14:53:42 -08:00
Adam Kelly e50d14b0a9
Generator reference (#1209)
* added chialisp deserialisation puzzle

* Update clvm-deserialization-in-chialisp. Add test

* added new test_chialisp_deserialisation tests

* fix tests

* Reduce accepted atom size to 1MB during ChiaLisp native deserialization

* add lower_level generator
updates to python_lowerlevel

* add black formatting to lowerlevel

* fix puzzles references

* lowlevel generator improvement
lint fixes

* chialisp.py remove git ditritus

* pass the second arg to the block_program in low level generator

* use slightly more optimised string for lower level generator

* Restore cc.clvm to f79152d1ab

* Adjust compilation sanity checks - remove generator.clvm, add chialisp_deserialisation.clvm

* Update tests for building clvm assembly from python

* Adjust sha256tree commitments for puzzles

* black formatting for lint

* add #noqas to long hexstrings

Co-authored-by: matt <matt@chia.net>
Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-03-10 13:24:17 -08:00
Mariano Sorgente f3a367c2a0
Migrate to testnet. increase weight proof recent blocks, and increase… (#1222)
* Migrate to testnet. increase weight proof recent blocks, and increase temp RAM

* Remove unnecessary logic, and make number of blocks sent safer

* Revert block validation change

* Revert changes

* revert failed test

* Reduce max k
2021-03-10 10:57:38 -08:00
Mariano Sorgente 1c6c372044
Ms.new breaking changes (#1182)
1. The formula for computing iterations is simplified, so that only one division is necessary, and inverting the (1-x) into just x.
2. There are new timestamp rules. A block N must have a greater timestamp than block N-1. Also, a block's timestamp cannot be more than 5 minutes in the future.
3. A List[Tuple[uint16, str]] is added to the handshake. These are the capabilities that the node supports, to add new features to the protocol.
4. The message_id is now before the data in each message.
2021-03-10 17:14:13 +09:00
Mariano Sorgente d2e558835d
Add rpc for setting and getting reward targets (#1216) 2021-03-10 16:56:26 +09:00
Mariano Sorgente 4d15f86715
Ms.rate limits (#1204)
Implements rate limiting for full node.
2021-03-10 15:48:34 +09:00
Gene Hoffman b5ce8c9e66
Isort take 3 (#1213)
* isort in a black friendly way

* isort but debug superlinter later
2021-03-09 18:27:27 -08:00
Florin Chirica 91f9457f73
Log better compacts, test fnp for compacts. (#1190)
* Log better compacts, test fnp for compacts.

* First attempt peer gossip limit.

* Fix wallet gossip.

* typos.

* Add logging to wallet api.
2021-03-09 15:32:33 -08:00
Mariano d5a1936a55 improve flaky test 2021-03-06 09:39:06 -08:00
Mariano c5f2e58ff7 Fix fns 2021-03-06 09:39:06 -08:00
Mariano ded3934cda start working on todos 2021-03-06 09:39:06 -08:00
Yostra 19b7a8247b daemon't tests expects genesis to be None 2021-03-04 18:48:11 -08:00
Mariano Sorgente 2c8bdce181
Fix daemon issue and uncompact blocks issue (#1150)
* Fix daemon issue and uncompact blocks issue

* Don't add repeated entries

* fix sampling validation

* temp skip segment validation

* fix condition

* Disconnect if weight proof validation throws

* Wallet long sync from closer

* Fix test

* uncomment WP validations, fix compact vdf bug

* fix log

Co-authored-by: almog <almogdepaz@gmail.com>
2021-03-04 09:22:23 -08:00
Mariano Sorgente d33d16591d
blspy to 0.9, replace infinity, update clvm, puzzle hash (#1146)
* blspy to 0.9

* replace infinity with default constructor

* infinity

* Update clvm, puzzle hash

* Fix tests with new blspy

* prefarm in config instead of constants

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Bill Blanke <wjb2002@flex.com>
2021-03-04 00:54:03 -08:00
Yostra 714597b04f fix tests 2021-03-03 19:13:27 -08:00
Florin Chirica bde064e73b
Try passing with fixtures. (#1134) 2021-03-03 14:39:51 -08:00
Almog De Paz 5a265994b6
WP Blue box integration (#1131)
* Initial commit weight proof bluebox.

* More verification, fix linting.

* Checkpoint testing.

* Checkpoint verify compact proofs.

* First attempt already seen compact proofs.

* Try bigger timeouts.

* Try passing first without ICC EOS.

* Try to uniformly sanitize by field_vdf.

* Try to fix vdf.py

* Temporary change: check if simulation is slow or stalled.

* Try fixing VDFProof erros in tests.

* Checkpoint: address some comments.

* temporarily lower number of sub epoch samples

* Checkpoint is_fully_compactified.

* First attempt compact blocks fixture.

* Add tests.

* Test simulation should eventually pass.

* Test full node store passing.

* Use the proper fixture.

* handle compact challenge blocks

* logs

* bluebox basic tests passing

* Try lighter test_simulation.

* refactor

* Bump chiavdf, use correct fixture db, try test cache.

* Update fixtures.py

* dont add redundant vdfs if blue boxed

* partial blue boxed chain test

* validate sampling

* logs

* Try bigger timeouts.

* logs

* First attempt split tests.

* Rename workflow files.

* Relax test simulation since it's still failing.

* Update test cache.

* merge fix

* change test dataset

* conflicts

Co-authored-by: fchirica <fchirica96@gmail.com>
2021-03-03 14:39:23 -08:00
Yostra d0383d989c
Daemon alerts (#1132)
* daemon alerts fetch, simple server, validation

* launch services, alert server, wait on gen

* config

* not ready alert creation signing

* get status daemon rpc

* gene's key

* lgtm

* config

* prefix

* rebase artifacts
2021-03-03 14:19:26 -08:00
Richard Kiss f79152d1ab
Bump clvm and replace `((c P A))` with `(a P A)`. Add some cc fixes prior to audit. (#1133)
* Bump clvm versions and replace `((c P A))` with `(a P A)`. Again.

* Modernize some clvm.

* Fix some comments and naming in `cc.clvm`.

* Prohibit `CREATE_ANNOUNCEMENT` in inner puzzle.

* fix cc.clvm

initial commit for innerpuz announcement test

Co-authored-by: matt <matt@chia.net>
2021-03-03 14:12:04 -08:00
Florin Chirica bac6e36c05
Bluebox weight proof. (#1028)
* Initial commit weight proof bluebox.

* More verification, fix linting.

* Checkpoint testing.

* Checkpoint verify compact proofs.

* First attempt already seen compact proofs.

* Try bigger timeouts.

* Try passing first without ICC EOS.

* Try to uniformly sanitize by field_vdf.

* Try to fix vdf.py

* Temporary change: check if simulation is slow or stalled.

* Try fixing VDFProof erros in tests.

* Checkpoint: address some comments.

* Checkpoint is_fully_compactified.

* First attempt compact blocks fixture.

* Add tests.

* Test simulation should eventually pass.

* Test full node store passing.

* Use the proper fixture.

* Try lighter test_simulation.

* Bump chiavdf, use correct fixture db, try test cache.

* Update fixtures.py

* Try bigger timeouts.

* First attempt split tests.

* Rename workflow files.

* Relax test simulation since it's still failing.

* Update test cache.
2021-03-03 13:13:08 -08:00
Yostra 1d91a20112
Network settings (#1019)
* rpc get network settings

* breakpoints

* don't log canceled

* fix test coin store

* cancel task on exit

* use network prefix for prefarm

* rebase and change network type

* network type

* missing config

* add timeout
2021-03-03 12:58:27 -08:00
Mariano Sorgente 05220d9b9b
Ms.difficulty simplify (#1123) 2021-03-03 10:27:00 -08:00
Richard Kiss a8a7af9ebc Revert "Bump clvm versions and replace `((c P A))` with `(a P A)`."
This reverts commit d0a08d2a93.
2021-03-01 17:14:13 -08:00
Richard Kiss d0a08d2a93 Bump clvm versions and replace `((c P A))` with `(a P A)`. 2021-03-01 12:12:48 -08:00
Mariano Sorgente d1ba029695
Fix spend prefarm, sync issues, decrease request_blocks timeout (#1095)
* spend prefarm fix

* Fix timeout issue with synncing, decrease request_blocks timeout

* Fix sync issues
2021-02-28 19:19:23 -08:00
Richard Kiss 3a2413cf3b Add tests for many puzzles, and fix some bugs found. 2021-02-28 16:54:26 -08:00
Richard Kiss 56aadf687d Redo some tests using block generator and puzzle utils. 2021-02-26 11:41:58 -08:00
Adam Kelly 948d03ed34 Do not include code from tests in production (src/consensus/block_creation.py) 2021-02-25 12:06:26 -08:00
almog c442225b77 add empty genesis slots test and test dataset 2021-02-25 09:04:32 -08:00
Gene Hoffman a6f6211206 black format 2021-02-25 01:16:08 -08:00
Adam Kelly 30863d4668
Test clvm compilation (#1042)
* Add checks for blockchain program generation
This is written in a verbose style for better error messages.
Note that src/wallet/puzzles/p2_delegated_puzzle_or_hidden_puzzle.clvm is temporarily moved aside, until it compiles to our intended bytecode.

* Remove CI clvm compilation check in favor of pytest check

* improve test failure message

* Enable clvm tests

* Formatting

Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-02-24 23:48:39 -08:00
almog 16d4f166a5 fix overflow challenge block in start of sub epoch 2021-02-24 15:56:23 -08:00
Gene Hoffman abd5f8f466 Update test-cache to 0.13.0 2021-02-24 15:38:06 -08:00
Yostra 480768d83d move overrides to block tool | start 2021-02-24 00:17:30 -05:00
Yostra bdc7312b42 start on different port 2021-02-24 00:17:30 -05:00
Yostra ea1f8d6bfb add tests 2021-02-24 00:17:30 -05:00
Yostra ac82b1842f black 2021-02-24 00:17:30 -05:00
Yostra 64e7fc1f1b fix tx test 2021-02-24 00:17:30 -05:00
Yostra 697b557556 special case testnet/mainnet validation 2021-02-24 00:17:30 -05:00
Almog De Paz 1bb7572d52
weight proof (#926)
wp validations
wp multi processing
2021-02-24 00:39:48 +02:00
Richard Kiss 6db38b0ffa Renumbering and rename condition opcodes. Recompile clvm. 2021-02-23 11:20:55 -08:00
Richard Kiss ce2d901768 Fix big block test. 2021-02-23 11:20:55 -08:00
Mariano Sorgente 86fa6049c9
Ms.rpcs (#989)
- RPC api: /push_tx. Using this RPC, you can spend custom chialisp programs. You need to make a SpendBundle, which includes the puzzle reveal (chialisp), a solution (chialisp) and a signature
- RPC apis to query the mempool
- Simplify signature validation logic by using the infinity element
2021-02-23 13:16:41 +09:00
Richard Kiss d11d96fa9e Add `puzzle_reveal` to `CoinSolution`. 2021-02-21 19:08:18 -08:00
Richard Kiss 2f8feec753 Change name to `CoinSolution.puzzle_solution_pair`. 2021-02-21 19:08:18 -08:00
Mariano Sorgente 395f16184a Try to debug flaky test 2021-02-21 21:13:47 +09:00
Mariano Sorgente 42b814bbe9 Avoid re validating blocks 2021-02-21 21:13:47 +09:00
Mariano Sorgente 65a8c153e6 Prevalidate results from validate_unfinished, and fix prevalidation batch 2021-02-21 21:13:47 +09:00
Yostra b76486041b
fix simulator (#950)
* fix simulator

* remove arg

* remove unused import
2021-02-18 14:49:36 -08:00
Mariano Sorgente 71ccc8f47b
Ms.slot catch up (#947)
* Slot catch-up, windows migrate, higher sub_slot_iters in the beginning

* Fix typo in filename

* reverse directory names

* comment flaky test

* Dont migrate addresses for now
2021-02-18 11:09:56 -08:00
Mariano Sorgente e05e5f9d8c
Ms.config changes2 (#941)
* This allows configuring a new testnet  only by changing the config file, no code changes required. 
* We can theoretically join either testnet1 (beta27) or testnet2 (rc) with this codebase
* There is a new constant: DIFFICULTY_CONSTANT_FACTOR, this number is a constant multiplied by the difficulty. It is set to 2**65 now, to make difficulty smaller (we can start the mainnet with a difficulty of 5 for example). 
* If you want to run a new testnet, you can change DIFFICULTY_CONSTANT_FACTOR in the config, and create a new entry for it
* Also, the databases now contain the GENESIS_CHALLENGE in them, so that if you run on two testnets, the DBs will be different
* Don't double load duplicate plots
 
 
 
Sample config:
 ```
 network_overrides: &network_overrides
  testnet4:
    DIFFICULTY_CONSTANT_FACTOR: 33554432
    DIFFICULTY_STARTING: 16777216
    GENESIS_CHALLENGE: "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b"  # std_hash(b"1")
    GENESIS_PRE_FARM_POOL_PUZZLE_HASH: "23b039a829f3ed14a260355b9fc55d9ccc4539f05bd4bf529fd2630de1751d52"
    GENESIS_PRE_FARM_FARMER_PUZZLE_HASH: "23b039a829f3ed14a260355b9fc55d9ccc4539f05bd4bf529fd2630de1751d52"
  mainnet:
    GENESIS_CHALLENGE: "d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35" # std_hash(b"2")

selected_network: &selected_network "testne4"
 ```
2021-02-19 02:00:25 +09:00
Mariano Sorgente dee65f574e New plots, re-enable test 2021-02-18 21:23:55 +09:00
Mariano Sorgente 33aacb0e91 lint 2021-02-18 21:23:55 +09:00
Adam Kelly 96a8749d1b Disable assert testing for coins created with corresponding pool puzzle hash 2021-02-18 21:23:55 +09:00
Adam Kelly 18fe80a7b4 lint 2021-02-18 21:23:55 +09:00
Adam Kelly 707a38d4ba lint 2021-02-18 21:23:55 +09:00
Adam Kelly e2c1ff07f3 Convert tests 2021-02-18 21:23:55 +09:00
Yostra 26e037d46c post rebase clean 2021-02-17 12:57:12 -08:00
Yostra 2e407fe35a block tool fix, colour coins multi coin spend fix, wallet max send amount 2021-02-17 12:57:12 -08:00
Yostra f0a317761a fn speedup, transaction cost limit, max send amount 2021-02-17 12:57:12 -08:00
Mariano Sorgente 6f5fbfc071 Fix validation of overflow subblocks 2021-02-17 09:38:21 -08:00
Arvid Norberg b6ab86201e fix test_clvm_strict_mode 2021-02-17 23:37:58 +09:00
Mariano Sorgente df14f4285a
Simplified network objects, blockchain DB consistency (#924)
* Simplified network objects, blockchain DB consistency

* test fix

* lint
2021-02-16 17:12:26 -08:00
Mariano Sorgente 5cc3407b65
Support for plots with pool address (#920)
* Updated gui with sub block changes

* Move some files, validate fees in mempool

* Support for plots with pool address

* Fix test and new blocks

* chia-blockchain-gui good commit

* changelof

* Fix edge cases with unfinished blocks

* Update gui

* Add test fixtures
2021-02-16 01:15:24 -08:00
Rostislav 0877ed7be0 Catch errors when attempting to verify a VDF proof with a bad form
Remove .get_bad_element() method from ClassgroupElement, do it in
test_blockchain as it's only needed there.
2021-02-15 20:16:34 -08:00
Mariano Sorgente a3684dc8eb
Remove sub blocks and chia wallet cli fixes (#913)
* Remove sub block start

* Intermediate commit, many replacements

* Fix wallet table name

* Fix tests

* chia wallet cli fixes
2021-02-12 12:24:33 -08:00
Mariano Sorgente 2c9f93fdaa
Ms.block rewards (#890)
- Real block reward schedule:
Prefarm 21,000,000
0-3 years 2 chia per block
3-6 years 1 chia per block
6-9 years 0.5 chia per block
9-12 years 0.25 chia per block
after that 0.125 chia per block
- Fixed proof of space estimation formula (type). network space was overestimated by 2x
- Consolidated all genesis hashes into one GENESIS_CHALLENGE value
- Tables sub_block_record renamed into block_record, in anticipation of renaming of sub blocks to blocks
- Coin amounts stored as bytes since sqlite 3 does not fit 64 bit unsigned integers as ints
- Fix a bug with chia show and chia netspace
- Adds validation of end of sub slots
- RPC renames:
get_sub_block -> get_block
-parameter sub_block -> block
get_sub_block_record_by_height -> get_block_record_by_height
-parameter sub_block_record -> block_record
get_sub_block_record -> get_block_record
-parameter sub_block_record to block_record
get_sub_block_records -> get_block_records
-parameter sub_block_records -> block_records
get_unfinished_sub_block_headers -> get_unfinished_block_headers

Co-authored-by: Yostra <straya@chia.net>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: almog <almogdepaz@gmail.com>
2021-02-11 11:42:49 +09:00
Rostislav 1004bd75b6 Fix handling of non-overflow block in full node store test 2021-02-10 17:11:49 -08:00
Rostislav 65dcae570e Change to compressed quadratic forms for VDFs
Using compressed representation of quadratic forms reduces their
serialized size from 130 to 100 bytes (for forms with 1024-bit
discriminant). This shrinks the size of VDF outputs and VDF proofs, and
it's a breaking change as compressed representation is not compatible
with older uncompressed (a, b) representation.

Compressed forms are also used in calls to chiavdf and in timelord's
communication with VDF client.

Update to version 0.14.0 of chiavdf and version 0.2.0 of test-cache.
Older versions of these do not support compressed forms.
2021-02-10 17:11:49 -08:00
Mariano Sorgente 5052eb730c Fix show issues 2021-02-10 10:30:50 -08:00
Adam Kelly dc891f65e6
Test SerializedProgram (#883)
* Test SerializedProgram

* Test get_tree_hash() in Program and SerializedProgram

* lint

Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-02-10 10:29:25 -08:00
matt-o-how b37e6e767b
Add Announcements (#881)
* cherrypicked add announcement opcodes

* remove unused import in test_mempool

* fixed broken test

* fix black superlint errors

* simple convert of coloured coins to announcements

announcements message now type bytes

* removed assert coin consumed

* updated RL higher level puzzle

* fix RL wallet to use announcement instead of lock

* rebase add announcement to blockchain_check_conditions

* lint and re-enable tests

* remove lingering reference to coin_consumed

* fixed bug with block validation

* fix RL wallet

* -update CC to use more simple announcement message

* lint fix for announcement class

* remove breakpoint
improve announcement set checking
delete TODO

* deleted commented out code
use .extend() instead of nested for

* fix mempool tests and aesthetic changes for richard

* fix mempool and add to debug_spend_bundle

* fixed test_blockchain_transactions

* flake

* update test_mempool annouce tests to use height not subheight

Co-authored-by: Yostra <straya@chia.net>
2021-02-10 10:28:13 -08:00
Mariano Sorgente dabdce5df0
Ms.remove height (#880)
* First pass at removing height

* Fix test

* Remove useless files

* Rename sub_block_height to block_height everywhere

* A few more replaces. Don't migrate old addresses. Don't replace addresses

* lru cache for blocks

* cc fixes rebased

* race

* close check full node task

* lint

* more race

Co-authored-by: Yostra <straya@chia.net>
2021-02-09 20:49:47 -08:00
Arvid Norberg d9bb9bf12c honor safe-mode setting in CLVM when validating mempool conditions 2021-02-09 16:02:43 -08:00
Yostra 99d656ca88 trades 2021-02-09 13:07:24 -05:00
Yostra 89eb231af5 blck 2021-02-09 13:07:24 -05:00
Yostra d81dd150e4 cc and program 2021-02-09 13:07:24 -05:00
Mariano Sorgente ef83c95ef4
Ms.cbor3 [protocol breaking change] (#864)
- removes cbor and instead uses streamable (https://trello.com/c/anzukjLs/901-remove-cbor)
- data types checked for payload ids and function (https://trello.com/c/4kPt98as/921-data-types-not-checked-on-payload-ids-and-function-names)
- Compressed format for messages: 1 byte for the message type / function, 2 optional bytes for the payload id
- Optimization to not fetch transactions for a block if we already have them
- RejectBlock message
- Software version sent in the handshake message (although ignored now)
- Removed mempool hack, big blocks can now be made with this codebase
2021-02-09 16:14:37 +09:00
Yostra 3442e9aac3 close session 2021-02-08 19:37:00 -08:00
arvidn eb1da3f8cc make the mempool cost calculation use serialized programs (and arguments) correctly. Add asserts to test that otherwise would fail 2021-02-07 08:21:52 -08:00
Mariano Sorgente 2b030bf4ae Fix issues with full node store and simplify 2021-02-07 08:20:31 -08:00
Mariano Sorgente 5b867c96f7 WARNING py.test 2021-02-07 20:13:01 +09:00
Mariano Sorgente 46de03f4d0 Increase timeout slightly 2021-02-07 20:13:01 +09:00
Mariano Sorgente cdf6fcabc2 Fix test, and dont ignore failed transactions 2021-02-07 20:13:01 +09:00
Mariano Sorgente 789721a184 Chia show more logging 2021-02-07 20:13:01 +09:00
Mariano Sorgente 7e4f52301b Fix double signage point in farmer 2021-02-07 20:13:01 +09:00
Arvid Norberg be7e2356d6 introduce SerializedProgram to use in the FullNode. Instead of parsing block programs in python, maintain them in serialized form to save time when executing them in rust 2021-02-04 18:26:26 -08:00
Yostra 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 Hoffman 41161e9e19 Comment out test_mempool_performance 2021-02-04 01:27:59 -08:00
Almog De Paz 2d99aa4224 fix double sub_epoch_summary append (#818)
* fix double sub_epoch_summary append
2021-02-04 01:27:59 -08:00
Yostra b1d5154b21 fix test (#809)
* fix test

* comments
2021-02-04 01:27:59 -08:00
Mariano Sorgente 30008be00a Improve sync store 2021-02-04 01:27:59 -08:00
Mariano Sorgente 386da02256 Fix test 2021-02-04 01:27:59 -08:00
Mariano Sorgente 63924f8188 Improve mempool performance 2021-02-04 01:27:59 -08:00
Mariano Sorgente efc6156fdf Rename some methods 2021-02-04 01:27:59 -08:00
Almog De Paz 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 Sorgente 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 Paz 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
Yostra 10cdedf702 optional 2021-01-24 21:50:01 -08:00
Yostra 1d01b3b0c6 make sure synced 2021-01-24 21:50:01 -08:00
Yostra b3575a2f48 rpc for tx count and get initial frz period 2021-01-24 21:50:01 -08:00
Yostra af1cc46b26 tests & working 2021-01-24 21:50:01 -08:00
fchirica e80467f381 Fix super linter issues. 2021-01-22 13:49:42 -08:00
fchirica 252066de7a nits, add test. 2021-01-22 13:49:42 -08:00
Almog De Paz d360dd084a
fix extend (#736)
* fix extend

* lint
2021-01-22 11:38:22 -06:00
Mariano Sorgente 82427b34ad Maybe decrease loading 2021-01-19 22:25:45 -08:00
Mariano Sorgente 76426b3e32 Speed up tests 2021-01-19 22:25:45 -08:00
Yostra fe3437d0a4 out 2021-01-19 21:40:13 -08:00
Yostra 3cdae1b8df test standard tx * 1000 2021-01-19 21:40:13 -08:00
Mariano Sorgente b82f3ba8a2 Optimize mempool tests 2021-01-19 18:22:43 -08:00
Mariano Sorgente 0afe5dc55f Fix test flakiness and improve full node tests speed 2021-01-19 18:22:43 -08:00
Yostra 2490e64413 add lock for cache 2021-01-19 18:15:28 -08:00
Yostra 8652e10016 15 sec 2021-01-19 18:15:28 -08:00
Yostra c1c237c4a8 expected requests 2021-01-19 16:29:19 -05:00
Mariano Sorgente 3d7d8a49ab Fix test and flake8 2021-01-19 10:53:04 -08:00
Mariano Sorgente 927e0d6913 Fix prevalidation and optimize some tests 2021-01-19 10:53:04 -08:00
Mariano Sorgente eed61d0dbf Prevalidate transactions 2021-01-19 10:53:04 -08:00
Mariano Sorgente 42871be6b4 Cache npc list and cost results 2021-01-19 10:53:04 -08:00
Yostra 4a9254a213 cleanup 2021-01-18 14:01:25 -08:00
Gene Hoffman 2486cceccd rename test to bech32m and place in wallet test run 2021-01-18 11:49:14 -08:00
matt 55e8bdf0e3 fix rl_tests to use bech32m name 2021-01-18 11:49:14 -08:00
matt 86c17ee06c replace chech32m with bech32m 2021-01-18 11:49:14 -08:00
matt a758587b58 remove unused imports 2021-01-18 11:49:14 -08:00
matt 1fcec881cb rename to check32m
add tests
2021-01-18 11:49:14 -08:00
Yostra d146278a51 test with generator that stalled the chain 2021-01-17 02:11:18 -08:00
Mariano Sorgente bb4c6c2f69 Fix test 2021-01-16 20:32:42 -08:00
Mariano Sorgente 26391b72c3 Revert change to sub block record, but keep the RPC api 2021-01-13 17:07:05 -08:00
Gene Hoffman 99503adcbf Other wallet test timeout to 100 2021-01-13 16:58:21 -08:00
Gene 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