Ignotus Peverell
d65a9adb59
Updated seed
2018-10-17 19:59:56 +00:00
Ignotus Peverell
b5cb227322
Last genesis for T4, unless I messed up something
2018-10-17 19:36:12 +00:00
Ignotus Peverell
6db0bcefa5
Minor warning removal
2018-10-17 18:16:20 +00:00
Antioch Peverell
2c5469568f
cleanup build warnings ( #1773 ) ( #1775 )
...
add docs/comments
2018-10-17 16:53:52 +01:00
Yeastplume
b43d6e4326
[T4] Set genesis block data + initial secondary scaling correctly ( #1776 )
...
* ensure genesis block+pre genesis is populated correctly with secondary scaling
* rustfmt
2018-10-17 16:53:31 +01:00
John Tromp
e9dcc143bf
refactor and change difficulty calcs; use sum instead of median ( #1774 )
2018-10-17 16:21:59 +01:00
Quentin Le Sceller
13b2a32092
Add prev root in BlockHeaderPrintable ( #1772 )
2018-10-17 10:51:50 -04:00
Yeastplume
5cec885ef5
[T4] diff change ( #1769 )
...
* pre-t4 again
* rustfmt
2018-10-17 13:48:18 +01:00
Yeastplume
404165a8fd
[T4] Add sec pow info to TUI, change magic number, genesis diff to 1 (temporarily) ( #1768 )
...
* add sec scaling stats to tui
* rustfmt
2018-10-17 10:37:28 +01:00
Antioch Peverell
fbf955dd11
Commit to prev_root in block headers ( #1764 )
...
* commit to prev_root in block headers
* prev_root ready to go, mergeable onto testnet4
2018-10-17 10:06:38 +01:00
Ignotus Peverell
fffe5154d2
Secondary PoW scaling factor dampening, cleanup ( #1765 )
...
* Remove useless time median window
* Secondary PoW factor dampening
* Fix off-by-one in time window, cleanup dampening, fix tests
2018-10-16 16:55:40 -07:00
Quentin Le Sceller
67bc891455
Update stratum documentation ( #1760 )
2018-10-16 16:31:57 -07:00
hashmap
85433c659d
Introduce a constant for peer send channel capacity ( #1761 )
...
We implicitly use it also in body_sync, so it's hard to keep it in sync.
2018-10-16 16:31:00 -07:00
John Tromp
8540e4f723
[T4] tweaks and fixes ( #1766 )
...
* refactor consensus.rs, tweaking some values
* move scale() there
* fix set_header_nonce bug
* remove maturity soft-fork code
* increase diff target precision
* fix weight comments and try resolve PR conflict
2018-10-16 16:14:22 -07:00
Quentin Le Sceller
701f0b9b60
Remove unecessary check in pipe.rs ( #1763 )
2018-10-16 12:04:00 -07:00
Ignotus Peverell
119b5cfc46
Fix api test in travis ( #1757 )
...
* seems to be too slow to start api server, adding retry to client. Fixes #1722
* Add sleep before retry
2018-10-16 11:55:04 -07:00
hashmap
7eb84f7675
Add sleep before retry
2018-10-16 19:43:27 +02:00
jaspervdm
85187c2a8c
Update API doc ( #1759 )
2018-10-16 13:05:16 -04:00
jaspervdm
fdd4846f11
Add scaling difficulty field to block http api ( #1758 )
2018-10-16 09:19:59 -07:00
hashmap
8588b7e0aa
Fix api test in travis
...
It seems to be too slow to start api server, adding retry to client. Fixes #1722
2018-10-16 17:27:04 +02:00
hashmap
7290d4b93f
Merge pull request #1751 from yourowncrypto/peers-round-robin
...
Use round robin for peer selection in body sync
2018-10-16 16:41:04 +02:00
Yeastplume
01df981a1d
[t4] fix header test sizes ( #1756 )
2018-10-16 14:39:51 +01:00
yeastplume
11bed215c1
rustfmt
2018-10-16 13:19:28 +01:00
yeastplume
f38d62287f
use secondary pow size for min header size calc
2018-10-16 13:19:09 +01:00
hashmap
466ce986a6
Use round robin for peer selection in body sync
...
We select a peer to ask a block randomly. Peer's send channel has
capacity 10. If we need too many blocks we limit number of blocks to asks as a number of peers
* 10, which means that there is some probability (pretty high) that we
will overflow send buffer capacity.
This fix freezes a peer list (which gives also some performance boost)
and create a cycle iteraror to equally distribute requests among the
peers.
There is a risk that a peer may be disconnected while we are sending a
request to the chanel, but stricltly speaking it was possible in the old
code too, perhaps with a lower probability.
Fixes #1748
2018-10-16 12:14:17 +02:00
hashmap
5bcc4508fd
Merge pull request #1755 from yeastplume/t4-test-fix-1
...
fix tests, update new genesis block, change p2p header magic number
2018-10-16 11:57:27 +02:00
yeastplume
4bb31dbdb4
update new genesis block, change p2p msg magic number
2018-10-16 10:16:54 +01:00
Quentin Le Sceller
da3a6bb019
Change position of seeding_type ( #1754 )
2018-10-15 21:25:58 -04:00
Ignotus Peverell
d0ed5cd4a3
Minor boundary adjustments for 2nd PoW scaling
2018-10-16 00:42:32 +00:00
John Tromp
34646ddf51
[T4] Rename all shiftsize / cuckoo_size to edge_bits and change value for T4 ( #1752 )
...
* replace all size_shift / cuckoo_size by edge_bits and change some constants for T4
* replace remaining occurrences of sizeshift
2018-10-15 16:14:23 -07:00
Ignotus Peverell
a41022f1e3
Fix last tests broken by secondary PoW factor adjustment
2018-10-15 22:53:28 +00:00
Ignotus Peverell
3c6b5a0a9c
Fix chain tests missing difficulty scaling
2018-10-15 22:24:13 +00:00
Ignotus Peverell
eeb7680981
Secondary PoW factor adjustment adjustments
2018-10-15 21:18:00 +00:00
John Tromp
45a5655cec
obsolete easiness et.al ( #1750 )
2018-10-15 20:24:36 +01:00
Antioch Peverell
86c1d7683b
The Header MMR (One MMR To Rule Them All) ( #1716 ) ( #1747 )
...
* header MMR in use within txhashset itself
works with fast sync
not yet in place for initial header sync
* add the (currently unused) sync_head mmr
* use sync MMR during fast sync
rebuild header MMR after we validate full txhashset after download
* support missing header MMR (rebuild as necessary) for legacy nodes
* rename to HashOnly
* cleanup backend.append()
* simplify vec_backend to match simpler append api
2018-10-15 19:24:01 +01:00
jaspervdm
5afca1697b
Change network code for extended keys ( #1743 )
2018-10-15 11:40:53 +01:00
yeastplume
9423865f92
update cargo versioning
2018-10-15 10:34:33 +00:00
Yeastplume
13facfac4b
pre-testnet4 genesis values ( #1744 )
2018-10-15 11:14:49 +01:00
Gary Yu
3b0006934e
suppress the test error of test_start_api ( #1740 )
...
* Use secp crate directly without extra use statement (#1738 )
(cherry picked from commit 80d28f94ea
)
* suppress the test error of test_start_api. Note: this is not a fix.
(cherry picked from commit 6f29685daf
)
2018-10-14 21:15:38 +08:00
Gary Yu
2e6a242827
small improvement on the servers test ( #1737 )
...
* cherry-pick from master for #1736
2018-10-14 20:13:49 +08:00
Ignotus Peverell
43f4f92730
[T4] Secondary proof of work difficulty adjustments ( #1709 )
...
* First pass at secondary proof of work difficulty adjustments
* Core and chain test fixes
* Next difficulty calc now needs a height. Scaling calculation fixes. Setting scaling on mined block.
* Change factor to u32 instead of u64.
* Cleanup structs used by next_difficulty
* Fix header size calc with u32 scaling
2018-10-13 13:57:01 -07:00
Gary Yu
e9f62b74d5
[T4] change compaction check trigger to 1 day and cut_through_horizon to 1 week ( #1721 )
...
* change chain compaction trigger from 2000 to 10080
* change CUT_THROUGH_HORIZON from 2 days to 1 week
* roll the dice to trigger the compaction
2018-10-13 09:34:16 -07:00
Gary Yu
9a716aea72
feature: txhashset downloading progress display on tui ( #1729 ) ( #1730 )
...
(cherry picked from commit 5c0eb11a7d
)
2018-10-13 10:12:13 +08:00
Antioch Peverell
4dff68ab61
Remove kernel sum header ( #1723 )
...
We maintain this locally in block_sums in the db (sums can be rebuilt from local data)
2018-10-12 18:15:29 -07:00
Ignotus Peverell
805cc24e73
Removed kernel sum from header. Fixes #1568
2018-10-13 00:57:08 +00:00
Antioch Peverell
df0dc91891
Chain init reset sync head ( #1724 )
...
* fix: binary auto release feature broken (#1714 )
* fix a mistake on script
* reset_sync_head on setup_head, no need for reset_head
2018-10-11 12:28:07 +01:00
Gary Yu
d3589d1bf5
small speed optimization for header sync ( #1719 )
2018-10-11 16:47:27 +08:00
Gary Yu
4f462cdfdc
fix: avoid a confusing log when fastsync start ( #1720 )
2018-10-11 12:38:13 +08:00
Yeastplume
d756da062a
[T4] warning cleanup ( #1713 )
...
* clean up warnings
* rustfmt
2018-10-10 08:56:15 -07:00
jaspervdm
e69b2ace70
[T4] Update transaction schematic ( #1712 )
...
* Update transaction schematic
* Fix typo
2018-10-10 11:28:36 +01:00