Yostra
0d7ef3f5ec
remove transaction type
2020-02-07 16:42:38 -08:00
Yostra
0943af63bb
move std hash to util
2020-02-07 16:42:37 -08:00
Mariano Sorgente
ca14e9ed18
New objects
2020-02-07 18:18:25 -05:00
Mariano Sorgente
3542dcd273
Close down VDF server after handling requrest
2020-02-07 10:32:36 -05:00
Mariano Sorgente
1116329fd0
Reduce number of test plots
2020-02-07 10:16:45 -05:00
Mariano Sorgente
40c751ba72
Try to fix server
2020-02-07 01:08:17 -05:00
Mariano Sorgente
893e2198fd
Fix error in VDF server
2020-02-06 19:56:00 -05:00
Mariano Sorgente
a04282a916
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into new-protocol
2020-02-06 19:18:52 -05:00
Mariano Sorgente
31465b0269
Simulation test, vdf with variable discriminant size, farmer puzzle ahsh
2020-02-06 19:01:18 -05:00
Yostra
696345538c
calculate block/base fee
2020-02-06 15:20:42 -08:00
Yostra
4d75599cb2
don't use programhash
2020-02-06 14:02:58 -08:00
Yostra
8a7e7015f3
rename unspent to CoinRecord
2020-02-06 12:42:09 -08:00
Mariano Sorgente
264bf5e485
Use pathlib.Path instead of os.path
2020-02-06 11:02:27 -05:00
Mariano Sorgente
bda8f0e75e
Allow bytes in streamable
2020-02-06 10:12:33 -05:00
Mariano Sorgente
96f2e25867
Merge
2020-02-06 07:59:00 +09:00
Mariano Sorgente
52b42ecc88
Move height to header, and get everything running
2020-02-06 00:21:48 +09:00
Mariano Sorgente
b6e2f2f5d3
Make tests pass
2020-02-05 22:33:03 +09:00
Mariano Sorgente
70c93ebe66
Merge branch 'db_headers' into integration
2020-02-05 21:07:18 +09:00
Mariano Sorgente
5468c25a09
Db headers, locks, pos dirs, and config ( #88 )
...
* New database table to store headers
* Loading blockchain only loads headers into memory instead of header blocks (header + proofs), speeds up the startup, and reduces normal operation memory usage by 80%
* Fix deadlock issues with store class
* Make memory store access synchronous, to reduce use of locks, this improves performance of block and unfinished block processing
* Remove locks from reads of DB, only lock for writes
* Cleaner configuration system with argparse
* Log to file by default, configurable to stdout
* Proof of space binary and create_plots scripts allow passing in temp and final directories
2020-02-05 09:42:57 +09:00
Yostra
73acc5a682
test blockchain for double spends and double output
2020-02-04 14:50:02 -08:00
Yostra
2589d1aa9c
close stores everywhere
2020-02-04 13:54:20 -08:00
Yostra
e0faa7c2e8
close all stores
2020-02-04 12:32:11 -08:00
Yostra
1cb46b2d6a
close store
2020-02-04 11:39:49 -08:00
Yostra
7ed451836d
clean, mypy, flake8
2020-02-04 11:39:49 -08:00
Yostra
5755909c5f
fix some mypy errors
2020-02-04 11:39:49 -08:00
Yostra
807ad97f2a
fix imports
2020-02-04 11:39:49 -08:00
Yostra
aad7b4e908
cleaner way to find fork
2020-02-04 11:39:49 -08:00
Yostra
374d82df8a
add test for blockchain
2020-02-04 11:39:49 -08:00
Yostra
82a611aad6
add option to mine transaction in blocktools
2020-02-04 11:39:49 -08:00
Yostra
6d0ba89dd4
use run_program
2020-02-04 11:39:49 -08:00
Yostra
74a4e8bb2a
coinbase freeze
2020-02-04 11:39:49 -08:00
Yostra
a7e3e4d700
typo
2020-02-04 11:39:49 -08:00
Yostra
3df867c5f6
check time exceeds for mempool
2020-02-04 11:39:49 -08:00
Yostra
ccb7da08da
mutable default arg
2020-02-04 11:39:49 -08:00
Yostra
ecf25368ba
test my id
2020-02-04 11:39:49 -08:00
Yostra
f840e0d978
test block age exceeds
2020-02-04 11:39:49 -08:00
Yostra
9427152a58
index exceeds mempool test
2020-02-04 11:39:49 -08:00
Yostra
57632c9877
fix issues
2020-02-04 11:39:49 -08:00
Yostra
cc796768aa
changes
2020-02-04 11:39:49 -08:00
Yostra
bb09b90c28
test higher fee per cost
2020-02-04 11:39:49 -08:00
Yostra
a1f5cbaab0
wallet tools
2020-02-04 11:39:49 -08:00
Yostra
d2e8c4e649
clear stores
2020-02-04 11:39:49 -08:00
Yostra
f2085df1ea
fix import
2020-02-04 11:39:49 -08:00
Yostra
6cc94c32f7
temporarily enable log
2020-02-04 11:39:49 -08:00
Yostra
f3a6fd065d
mempool tests
2020-02-04 11:39:49 -08:00
Yostra
b7bff1585d
enable passign puzzlehash for rewards
2020-02-04 11:39:49 -08:00
Yostra
677239a979
name a server
2020-02-04 11:39:49 -08:00
Yostra
5ea2599264
bugs
2020-02-04 11:39:49 -08:00
Yostra
81a91fe287
give fullnodes different names
2020-02-04 11:39:49 -08:00
Yostra
47665886e4
correct coinbase reward / fee reward
2020-02-04 11:39:48 -08:00
Yostra
a8d126f61e
test unspent store thorugh blockchain
2020-02-04 11:39:21 -08:00
Yostra
ca053e5a60
fix blockchain args
2020-02-04 11:39:21 -08:00
Yostra
7f115d70e4
fix rename
2020-02-04 11:39:21 -08:00
Yostra
efb61cc107
unspent db in blockhain
2020-02-04 11:39:20 -08:00
Yostra
b43be9bf4f
some moretest unspent db
2020-02-04 11:39:20 -08:00
Yostra
bd85f51612
empty tests
2020-02-04 11:39:20 -08:00
Yostra
2235d6fa8e
types, mempool, conditions
2020-02-04 11:39:20 -08:00
Yostra
1cba0be0b2
test spendbundle
2020-02-04 11:39:20 -08:00
Yostra
277f9e90ef
wallet and ledger stuff for creating transactions
2020-02-04 11:39:20 -08:00
Yostra
919d3f33a4
simple add unspent test
2020-02-04 11:39:20 -08:00
Yostra
305461382d
fix stuff
2020-02-04 11:39:20 -08:00
Yostra
a16a755554
fix stuff
2020-02-04 11:39:20 -08:00
Mariano Sorgente
89c84674a0
Fix tests
2020-02-03 15:44:58 +09:00
Mariano Sorgente
ea55e955e1
Fix tests
2020-01-30 19:38:48 +09:00
Mariano Sorgente
32a6cbfb09
New config system with argparse
2020-01-30 17:57:47 +09:00
Mariano Sorgente
6cd4298ae1
Fixes from straya's feedback
2020-01-30 11:52:03 +09:00
Mariano Sorgente
aa0aa6d8c9
Make sure to commit after adding blocks
2020-01-29 12:04:26 +09:00
Mariano Sorgente
6f45a4d515
Reduce the use of locks with synchronous store methods
2020-01-28 17:14:50 +09:00
Mariano Sorgente
194285f6d4
Fix sqlite
2020-01-28 16:06:01 +09:00
Mariano Sorgente
330e2c425f
More work on fixing bugs
2020-01-27 22:09:28 +09:00
Mariano Sorgente
be1016a319
Store small headers in database and load small from memory
2020-01-27 14:11:54 +09:00
Mariano Sorgente
5c49a2858c
Fix sqlite issue on Github CI machine ( #87 )
...
* Add a lock and update cbor2
* Support python3, and tests python3 in ci
2020-01-24 20:44:09 +09:00
Mariano Sorgente
0f30aaf0cf
Revert aiohttp version
2020-01-24 16:12:16 +09:00
Mariano Sorgente
9426e00d8f
Fixes the setproctitle bug and the wheel bug. ( #75 )
...
Fixes the setproctitle bug, and the wheel bug.
2020-01-17 17:36:01 +09:00
Gene Hoffman
fba486ec9c
Move tests to blockchain.db
2020-01-14 22:40:26 -08:00
Gene Hoffman
28ba54722c
Move tests to blockchain.db
2020-01-14 22:39:34 -08:00
Gene Hoffman
7026ad4a04
Change tests to blockchain.db
2020-01-14 22:36:18 -08:00
Mariano Sorgente
91573826ca
Fix short sync, fix sync tests, add short sync test ( #72 )
2020-01-15 14:25:59 +09:00
Mariano Sorgente
4a736883ca
Full sync test and color logging ( #69 )
...
* Adds color logging, and test for full sync
2020-01-14 23:47:40 +09:00
Mariano Sorgente
69c808a33f
Async waiting for processes, fix networking bug, reorganize blockchain class
2020-01-14 17:35:51 +09:00
Mariano Sorgente
49e4629935
Sqlite, RPC server, and other changes ( #68 )
...
* Switches to sqlite and remove all mongo stuff
* Starts RPC server on port 8555
* UI is in new process, communicates to node through rpc
* JSON serialization for streamables
* Harvester periodically prints its plot names and sizes
* Process names are set to chia_full node, chia_harvester, etc
* CONTRIBUTING.md, and remove docs from git (put in wiki)
* Adds the SmallHeaderBlock type, it's header block without the PoT and PoSpace
* Fix harvester bug (allows two harvesters in the same machine)
2020-01-13 22:19:53 +09:00
Mariano Sorgente
281be67729
Alpha 1.2 ( #64 )
...
Remove database access from blockchain, and handle headers instead of blocks
Avoid processing blocks and unfinished blocks that we have already seen.
Also adds test for load.
Plotting improvements
2020-01-08 18:07:52 -06:00
Mariano Sorgente
a5329005e0
Fix self connection leak ( #43 )
...
* Fix self connection leak
* Increase sleep to improve performance
* Add load test for unfinished blocks
* Fix flake8 lint
2019-12-10 08:27:38 +09:00
Mariano Sorgente
402ea10e20
Sync changes ( #27 )
...
* Added a new API call GetAllHeaderHashes which returns just the header hashes. This is used for finding fork point.
* Only downloads headers and blocks from fork point
* Remove CancelledError logging
* Short sync should now work properly, it will always ask for previous block. There might be some repeated requests.
* Introducer now only returns peers which it has seen recently, and full node only connects to peers which it has heard from recently.
2019-12-02 22:47:09 +09:00
Mariano Sorgente
1e3e0a4342
Moved things from disk to memory, clear old blocks
2019-11-28 13:00:17 +09:00
Mariano Sorgente
8c20241273
Change block time to 5 min, 128 block epoch, default upnp
2019-11-28 00:35:48 +09:00
Mariano Sorgente
91c25001d7
Implement faster sync
2019-11-27 14:25:11 +09:00
Mariano Sorgente
29b5fdb610
Keep headers in memory
2019-11-27 12:09:56 +09:00
Mariano Sorgente
6729afa4be
Improve header syncing process
2019-11-24 17:08:34 +09:00
Mariano Sorgente
45be0ab0b8
Attempt to fix timeout issue
2019-11-22 15:53:04 +09:00
Mariano Sorgente
dfd3fd9676
Merge with latest master, bug fixes, cleanup
2019-11-20 16:28:26 +09:00
Mariano Sorgente
d048d61315
Fix test
2019-11-20 13:42:25 +09:00
Alex Wice
1be3b806a6
more merge cleanup
2019-11-18 14:14:40 +09:00
Alex Wice
c41d240ef3
minor cleanup after merge
2019-11-18 14:09:58 +09:00
Alex Wice
4f9ba50b15
pyblack autoformatting
2019-11-18 13:50:31 +09:00
Alex Wice
8be7181c9d
sort and remove unused imports
2019-11-18 13:49:39 +09:00
Alex Wice
3c3df3776e
persist should work
2019-11-18 13:40:20 +09:00
Alex Wice
1aab0de425
persistence, pass all pytests
2019-11-18 13:31:48 +09:00
Mariano Sorgente
fc99e4c39f
New protocol changes from bram
2019-11-14 17:26:18 -05:00
Mariano Sorgente
db3eac9fb9
Allow specifying an alternate plot directoey
2019-11-08 16:53:29 -05:00
Mariano Sorgente
a479a506f9
Scripts ( #14 )
...
* Start block UI stuff
* Start with block search
* Create connections from the UI
* Add plot directory
* Add scripts for key generation, and plotting
* Remove keys and plot config
* Add scripts for key generation, and plotting
* Readme, comments
2019-11-08 16:51:01 -05:00
Mariano Sorgente
ff2f4a30d5
Merge branch 'challenge_hash' into networking
2019-11-03 16:42:05 -08:00
Mariano Sorgente
38d8038b01
Added challenge hash
2019-11-01 17:57:30 -07:00
Mariano Sorgente
e65d9bad71
__bytes__, cbor, etc
2019-11-01 14:53:48 -07:00
Mariano Sorgente
5869538416
Start with block page, and remove global connections lock
2019-10-31 10:34:16 -07:00
Mariano Sorgente
1391bfc9c4
Merge branch 'master' of github.com:Chia-Network/chia-blockchain into prompt
2019-10-30 14:35:09 -07:00
Richard Kiss
22f8ffd745
Create tests/plots using git.
2019-10-30 14:19:44 -07:00
Mariano Sorgente
8bafbbaac7
Fix a few bugs
2019-10-29 12:33:32 +09:00
Mariano Sorgente
b50fb9c097
Working
2019-10-26 11:13:23 +09:00
Mariano Sorgente
0fef0b933e
Changed to mypy from pyright, fix tests (full node still broken)
2019-10-22 16:44:01 +09:00
Mariano Sorgente
8e99f2cad9
Fix too slow block bug
2019-10-18 14:32:50 +09:00
Mariano Sorgente
b4baff9f4e
Fix tests
2019-10-16 17:38:49 +09:00
Mariano Sorgente
a22e606f75
Merge
2019-10-10 13:04:52 +09:00
Mariano Sorgente
397925d29e
Implement new formula, and added tests
2019-10-09 16:36:58 +09:00
fchirica
52a19e7aaf
Sync with master
2019-10-07 20:02:34 +03:00
Mariano Sorgente
4f89752d62
Implement difficulty adjustment
2019-09-30 22:15:32 +09:00
Mariano Sorgente
b3776814fa
Add tests for blockchain class
2019-09-24 17:46:03 +09:00
Mariano Sorgente
55063e0f73
New blockchain class implementation
2019-09-24 15:01:32 +09:00
Mariano Sorgente
3982bc44a9
More additions to networking
2019-09-12 13:31:49 +09:00
Mariano Sorgente
784c8b4d8a
Added tests, improved serialization
2019-08-05 14:38:16 +09:00
Mariano Sorgente
6699b1f97a
Initial directories
2019-07-16 17:38:31 +09:00