Commit Graph

44 Commits

Author SHA1 Message Date
Yostra
64b63f4ed5
lower freeze time (#1941) 2021-04-15 19:28:55 -07:00
Andrew Martin
add5b3bbc9
fix typo in keys documentation (#1933) 2021-04-15 13:03:51 -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
e7627c567f Change generator ref error message name 2021-04-14 20:02:10 -07:00
Adam Kelly
73d5577bec Validate Generator Reference field during block validation. Validate size in bytes of generator against MAX_GENERATOR_SIZE. Lower max generator list entries. 2021-04-14 20:02:10 -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
Mariano Sorgente
cbbf365dc9
Smoother netspace (#1894)
* Smoother netspace

* Change cli as well
2021-04-14 11:52:39 -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
Almog De Paz
e3676f130f
Add segments to db while synced (#1885)
* create segments on restart
cache segment on respond block

* save segments by header hash

* logs

* lint

* logs

* use hex

* add done check

* add done check
2021-04-14 11:22:25 -07:00
Mariano Sorgente
49219ea950
Improve get_name_puzzle_conditions, add typing, avoid re-implementing… (#1846)
* Improve get_name_puzzle_conditions, add typing, avoid re-implementing sensitive serialization logic

* Lint
2021-04-14 14:03:33 +09: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
0d8cfa1cff
Plot tools fixes (#1848)
* Reduce chance of race conditions, and don't throw when we don't have plots

* use cleaner initial value
2021-04-14 13:21: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
almog
e9ca611a85 get_block_records_at get only blocks that are part of the chain 2021-04-12 10:21:05 -07:00
Jesús Espino
181f2fefa3
Add --offset flag to the wallet get_transactions command (#1802)
* Add --offset flag to the wallet get_transactions command

* Running black
2021-04-11 22:23:49 -07:00
Yostra
a142f10cfd
Init as None (#1814)
* init as None

* lint

* fix import from asyncio

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2021-04-11 20:35:51 -07:00
Yostra
06e871c5d5 cancel safely 2021-04-11 18:42:13 -07: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
Will Bendick
7d6ea6a39d removes shared dict 2021-04-09 10:06:45 -07:00
Will Bendick
4c45451864 appease mypy 2021-04-09 10:06:45 -07:00
Will Bendick
232454f2cd returns total size instead of updating non local variable 2021-04-09 10:06:45 -07:00
Will Bendick
b350065ebb lint 2021-04-09 10:06:45 -07:00
Will Bendick
c62f1cea68 lint 2021-04-09 10:06:45 -07:00
Will Bendick
9d715b9a74 loads plots concurrently 2021-04-09 10:06:45 -07:00
Richard Kiss
8c96651a78 Revert erroneous type change in CostResult. 2021-04-08 21:16:30 -07:00
Richard Kiss
7506f64c35 Rename to ConditionWithArgs. 2021-04-08 11:35:50 -07:00
Richard Kiss
7472d74799 Remove as_python; add some types. 2021-04-08 11:35:50 -07:00
Adam Kelly
8b97545455 Use the new 2 argument form of substr from clvm 0.9.5 for a smaller deserializer 2021-04-07 19:04:11 -07:00
Mariano Sorgente
bee0a42714
Ms.double count (#1734)
* Found the source of the counting issue. An overflow block which is not the first
2021-04-08 00:31:58 +09:00
Mariano Sorgente
07a6ba5274
Retrieve transaction using bytes tx_id, and add comment (#1729) 2021-04-08 00:31:33 +09:00
Mariano Sorgente
876692631a
Fix issue with error handling in timelord. Show infusion rate for all… (#1716)
* Fix issue with error handling in timelord. Show infusion rate for all timelords (even slow ones), and fix logging for rate limiting

* Fix another issue

* Further improvements in crashes, and better counting

* Don't error if we cannot infuse

* flake8

* more flake8

* Improvements for not the fastest timelord

* Don't double count

* Don't double count (again)
2021-04-06 19:48:46 -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
Yostra
43c02e513a use wal and full sync mode 2021-04-06 18:22:01 -07:00
Yostra
a69abb1717 don't start with api requests before ready 2021-04-06 17:50:25 -04:00
Richard Kiss
7906d02990 Simplify pyinstaller.spec. Solve daemon/chia name collision. 2021-04-06 13:29:41 -07:00
Yostra
660970f53f reduce by 100x 2021-04-05 21:12:09 -06:00
Gene Hoffman
f9487f576d Fix various lgtm.com issues 2021-04-05 02:10:29 -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
b9b3368866 Put data files in subdirectory due to name collision. 2021-04-04 21:41:39 -07:00
Richard Kiss
f2b577dda1 git mv src chia 2021-04-04 21:41:39 -07:00