Commit Graph

17 Commits

Author SHA1 Message Date
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
Richard Kiss 569ca16f50 Use `sed` to change imports from `src` to `chia`. 2021-04-04 21:41:39 -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
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
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
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 bde064e73b
Try passing with fixtures. (#1134) 2021-03-03 14:39:51 -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
almog c442225b77 add empty genesis slots test and test dataset 2021-02-25 09:04:32 -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
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
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
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
Mariano Sorgente 927e0d6913 Fix prevalidation and optimize some tests 2021-01-19 10:53:04 -08:00
Mariano Sorgente 8898581e0a Remove db after test 2021-01-12 17:02:22 -05:00
Yostra 0572cccb43 split tests 2021-01-12 17:02:22 -05:00