Commit Graph

1071 Commits

Author SHA1 Message Date
Adam Kelly bc5efbbee9 Test passing multiple arguments as arguments to block generators 2021-04-20 17:07:36 -07:00
Mariano Sorgente e62be6c422
Ms.block body tests (#2203)
* Start block body tests

* More tests

* More tests

* Improvements and security fixes to block body validation

* Revert bad test changes

* Fix check for ref list size
2021-04-20 12:18:16 -07:00
Richard Kiss 170d451b7c
ROM now outputs `(coin-spends . block-level-extras)` (#2149)
* Change input to ROM to `(coin-solution-inputs . extras)`.

* Add `deserializer` to `generator_for_single_coin`.

* Fix last test.

* ROM now outputs `(coin-spends . block-level-extras)`
2021-04-19 14:04:55 -07:00
Mariano Sorgente a3fd085924
Ms.double blocks fix 2 (#2129)
* Fix issue with double blocks

* Fix shadow variable name, and lint

* improve debug log

* Fix case of empty block

* Test for recursive handling

* pytest level
2021-04-19 12:47:00 -07:00
Richard Kiss b3880d7ea7 Simplify CSE input format.
It was `((parent amount) (puzzle solution))`.
It is now `(parent puzzle amount solution . *spend_level_extras)`
2021-04-18 22:57:00 -07:00
Richard Kiss 166ab7c99a Remove the tree abomination. 2021-04-18 18:58:56 -07:00
Richard Kiss 44ba53550d Rewrite "ROM" in clvm, including deserialization. 2021-04-18 16:02:53 -07:00
Mariano Sorgente ad8847618a
Fix wallet reorgs, add cache for efficiency (#2022)
* Fix wallet reorgs, add cache for efficiency

* Fix lint
2021-04-18 18:30:22 +09:00
Mariano Sorgente 90dfdeb29a
Ms.signage points 2 (#2024)
* imporve signage points farmign

* Add test and more fixes

* Remove await

* Fix lint

* Unused import
2021-04-18 18:29:53 +09:00
Yostra 03784c9cd5
WhenMainnet (#2011)
* timestamp

* freeze

* root

* prepare for mainnet

* lint

* update constants

* starting diff

* remove breakpoint
2021-04-17 23:57:58 -07:00
Mariano Sorgente 615d8af00d
Add limit for AGG_SIG condition message of 1024 bytes. Catch any exception thrown in mempool block creation, and catch any excepction making a block, then make an empty block. (#2013) 2021-04-17 23:57:07 -07:00
arvidn 6b4d060758 pass through max cost all the way down to where we execute the CLVM code 2021-04-17 10:34:13 -07:00
Mariano Sorgente a6874bd2fe
Block compression and decompression (#1959)
* squash

* rebase cleanup

* cost

* Combine adam's and straya's PRs

* Fix cost test

* Fix another test

* Improve safety in reorgs

* Improve wallet in reorgs

* Improve wallet in reorgs

* Bug in reorg handling

* Bug in reorg handling, and fix test

* Band aid

* Comment out to pass test

* Comment out test

* rebase clean

* USe a list of reference generators

* create

* Integrate Block Compression

* Fix generator argument creation

* improve test

* update block tools

* Separate CompressorArg and GeneratorArg, improve type hints

* First crack at `list_to_tree`.

* Integrate generator arguments as tree

* End to end test for generators

* Fix linting issues, hook up things, and add a test

* tidy GeneratorArg test

* Get compression and decompression working in full node

* Fix fetching block generator from DB in multiprocess

* Fix edge case in reorgs, test many combinations of reorgs

* reduce max number of generators refs allowed in a block

* Apply Straya's fix for calculating the end index for generator args

* typos

* Run test_block_compression for a transaction large enough to force multiple input coins in the transaction

* Update generator compression tests for treearg change and decompressor offset args fix

* Fix merge conflict

* Fix test

* Fix full node tests

* Don't make full blocks

* fix lint

Co-authored-by: Yostra <straya@chia.net>
Co-authored-by: Adam Kelly <aqk@aqk.im>
Co-authored-by: Richard Kiss <him@richardkiss.com>
2021-04-16 23:13:22 -07:00
Rostislav Skudnov f9ac890090
Change mempool rules for replacing conflicting SpendBundles (#1971)
Require that a conflicting SpendBundle must not only have higher fee per
cost, but also increase the total fee by at least 0.00001 XCH and spend
all coins that were spent in the set of conflicting SpendBundles.

Refactor and update tests of conflicting spends (aka double spends) in
mempool.

Co-authored-by: Rostislav <rostislav@users.noreply.github.com>
2021-04-16 18:20:21 -07:00
matt-o-how 1d6bc440c7
Deleted blockchain_check_conditions (#1966)
* deleted blockchain_check_conditions and added optional timestamp to mempool_check_conditions

* removed unnecessary code

* change back to < for block height

* time now passes on equal to condition value
2021-04-16 14:02:06 -07:00
matt-o-how 332d9392f9
Add test for relative seconds, and rename conditions (#1902)
* Add test for relative seconds

* rebased on top of main

* Renamed AGG_SIG to AGG_SIG_UNSAFE
Renamed height and time conditions
Changed some demo p2 puzzles to use AGG_SIG_ME

* fix merge on cost_calculator

* update hex and sha256tree of p2_delegated_conditions

* fix condition name in rl clvm

* updated the innerpuz sha256tree after careful inspection
2021-04-15 13:00:14 -07:00
Adam Kelly 24fdd378a7
Transaction matching (#1932)
Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-04-16 03:23:40 +09:00
Arvid Norberg cab78c43a6
update cost and max cost according to new plan (#1864)
* update cost and max cost according to new plan
of even split between (1) generator program size (2) generator program CPU and
memory costs (3) CREATE_COIN conditions for and archetype block with 1000
vanilla transactions, 2 inputs and 2 outputs each.

update costs of conditions to use the same unit (as CLVM). Remove CLVM_COST_RATIO_CONSTANT

Add COST_PER_BYTE constant, defining the cost for each byte of generator program.

* bump clvm and clvm_rs versions

* fix typo in setup.py
2021-04-15 20:16:52 +09:00
Adam Kelly 82876587ca Generator Block Decompression 2021-04-14 20:03:37 -07:00
Adam Kelly 2d26934965
Add types to support Generator Back References (#1901)
* Add types to support Generator Back References

* Add test workflows

Co-authored-by: Adam Kelly <aqk@aqk.im>
2021-04-14 13:49:36 -07:00
matt-o-how e977bed7e4
Add Puzzle Announcement conditions (#1780)
* Specified two types of create_announcement

* Fix create_announce_with_puzhash in specific situation

* Removed unnecessary announcement functionality from a bunch of place

* Added tests for puzzle announcement and wallet features

* fix tests/clvm/coin_store.py to use new announcements

* fix test_blockchain_transactions

* update test_blockchain_transactions to use real names

* remove lingering ConditionVarPair

* Fix another lignering CVP issue

* fix broken test imports

* fix puzzle announcement test

* change announcement_names to set and rename some functions for clarity

* Rename conditions for consistency

* typing and typo fixes

* fix name conflict in test

* fix test coin_store to use sets

* renumber opcode

* force recompile and small fixes for new conditions numberings

* add sha256tree files for updated hex files
2021-04-14 11:28:18 -07:00
Adam Kelly 6946b265b9 Keep up with dependabot modifying our workflow files and Canonicalize order of tests 2021-04-14 11:07:56 -07:00
Mariano Sorgente a2ca057b49
Ms.aggsig me challenge (#1843)
* Start aggsig me

* Pass in genesis challenge

* Update DID, and remove useless functions from coinbase.py

* Unused imports

* Revert GUI

* Use a different constant so forks of chia can easily change it
2021-04-14 14:03:14 +09:00
Mariano Sorgente d2466ee822
Ms.mempool improvements (#1823)
* Remove overflow from list, and remove useless call to handle_eos

* Unindent

* Changes to mempool

* tests

* progress on tests

* Add tests for new mempool

* Fix lint and revert streamable changes

* Improve logging

* Test level warning

* Fix test

* Increase mempool size to 150x
2021-04-13 21:19:12 -07:00
Mariano Sorgente 772e6fd440
Ms.performance (#1776)
* Improve performance of streamable

* __annotations__ instead of get_type_hints

* Fix overly strict type checker

* Lints and fix test

* Lint

* Adds support for empty streamables

* Use different strategy to fix lint and support empty Streamables

* Test for empty streamable

* Changelog
2021-04-13 16:42:26 +09:00
Yostra 773adfade5
Lock for all writes (#1758)
* lock for all writes

* use async  with where convinant

* wrapper

* more

* lint

* update wallet

* rl wallet

* indentation

* fix tests

* bad path merged into main

* wallet lock

* refacoted by mistake

* re-raise

* memory/disk inconsistency

* more inconsitency

* asyncio.cancelled is baseexception in 3.8 and 3.9
2021-04-10 19:07:02 -07:00
Yostra 69b18b5ec5 daemon test 2021-04-08 13:22:48 -07:00
Richard Kiss 7506f64c35 Rename to `ConditionWithArgs`. 2021-04-08 11:35:50 -07:00
matt-o-how 5e1bf6d5f3
Merge DID into main (#1720)
* rebase DID off main

* fix indentation and imports

* lint fixes

* fix test_compilation paths for new puzzles

* added _init__.py for did_wallet

* mypy typing fixes

* included did_wallet in setup.py module list

* stored pubkey & puzhash so that recovery_spend can choose not take them

* black missing comma
2021-04-06 19:31:44 -07:00
Mariano 691534f3fe Removes warnings by renaming some protocol messages. Also improves error handling for timelord. 2021-04-04 23:54:11 -07:00
Richard Kiss 569ca16f50 Use `sed` to change imports from `src` to `chia`. 2021-04-04 21:41:39 -07:00
Richard Kiss 8a3e00548a Rename `src` to `chia`. 2021-04-04 21:41:39 -07:00
Gene Hoffman 00b3af2bcb Don't cancel main branch CI runs 2021-04-02 11:48:25 -07:00
Almog De Paz 60011989a7
wp seed race condition (#1508)
* get correct seed from cache mid sync

* upgrade test

* test

* fix regression ses at tip height, add to test

* fix condition for overflow challenge block

* fix condition for overflow challenge block
2021-04-02 10:37:30 -07:00
matt-o-how e3c6baf815
Change announcements flow to conditions check (#1456)
* add announcement_names function and only return names to mempool check

* added test of announcement message is ()

* neater implementation of announcement_names in condition_tools

* announcements got from NPC list instead of re-running spendbundle

* clean up some code formatting

* remove unused import
2021-04-02 10:36:31 -07:00
Mariano Sorgente 05b4659633
Ms.offline signing2 (#1530)
* Offline transaction signing

* Create signed transaction from python

* More work on offline

* Get transaction signing working for many outputs.
2021-03-31 17:04:10 +09:00
Mariano Sorgente 474c99d0b7
Add assertions for streamable parsing (#1615)
* Add assertions for streamable parsing

* Also assert in byte_types

* Don't require unhashable types
2021-03-31 17:03:54 +09:00
Mariano Sorgente ee81a0e088
Improve chia show (#1593)
* Improve chia show

* Fix default ports on all commands, add missing __init__.py files.
2021-03-30 11:43:30 -07:00
Florin Chirica 43625e60f8
Sanitize WP only. (#1463)
* Initial commit.

* Try sanitize_weight_proof_only.

* Use challenge blocks.

* Try spawn compact task only in simulation test.

* Small rewrite.

* Typo.

* Use default sanitize_wp_only if not present in config.
2021-03-29 21:18:38 -07:00
dustinface 6a1862fbc8
src|test: Improve time estimate in `cmds.farm_funcs.summary()` (#1528)
* util|test: Add misc.py with format_minutes as first method

Format `minutes` into a string with the format:

`unit` and `sub-unit`

where `unit` and `sub-unit` can be:
- years (`unit` only)
- months
- weeks
- days
- hours
- minutes

* cmds: Use `format_minutes` in farm_funcs.summary
2021-03-27 00:18:19 -07:00
Mariano Sorgente 5b4e077b1a
Pass in environment to Popen, and fix lint issues (#1517) 2021-03-27 00:09:15 -07:00
matt-o-how 50bc1bb68b
Add conditions language asserts for parent_id, puzzle_hash and amount (#1462)
* add new opcodes

* add checks and tests for new conditions

* add new conditions to condition_codes.clvm
2021-03-25 21:26:12 -07:00
Adam Kelly 89111e8df7 Add options for verbse, and output directory 2021-03-25 12:05:54 -07:00
Adam Kelly 191575ea0e Update README for testconfig.py change 2021-03-25 12:05:54 -07:00
Adam Kelly f59acccf51 Add github workflow tool 2021-03-25 12:05:54 -07:00
Adam Kelly 1c4c1d148a Fix imports for moved tests 2021-03-25 12:05:54 -07:00
Adam Kelly 68a15a5ff5 Move slow tests 2021-03-25 12:05:54 -07:00
Florin Chirica 96618c24c3 Bluebox protocol test.(#1438) 2021-03-24 15:41:53 -07:00
Almog De Paz de89254d98 1.0.1 wp blue box fix (#1434)
* fix wp bluebox integration

* lint

* remove corrupted segments

* log

* typo in sql

* cache wp on restart

* remove bad log

* lint

* fix typo

* block tools semi compacted blocks
2021-03-24 15:41:53 -07:00
Yostra 2b20098695 remove 2021-03-24 15:41:53 -07:00
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