Steven Li
85854578d1
Update chain/types/blockheader.go
...
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
2019-10-31 16:44:26 +08:00
Steven Li
0aa56ba665
Refactor the PowerCmp function
...
Why we have this:
This algorithm here directly follow the rule of ratio to win, and easier to understand.
Just think about a smaller space, e.g. 100, instead of 2^256.
When one miner has 10% power, it should have 10% ratio to win. that is, when the h is in {0..9}, it wins. Simply speaking, it is:
(h + 1) / 100 <= 10% , instead of
h / 99 < 10%
The former is easier to understand, though both are equivalent when h is an integer and power_ratio < 1)
2019-10-31 13:36:33 +08:00
Whyrusleeping
790ac7b510
Merge pull request #485 from lanzafame/feat/connect-chain-sync-trace
...
add statemanager.CallRaw span
2019-10-30 10:57:09 -07:00
Jakub Sztandera
bc97a73d67
Implment formatter on FIL to override big.Int
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-30 01:52:24 +01:00
Łukasz Magiera
be4a5665fe
deals: gofmt
2019-10-29 13:02:24 +01:00
Łukasz Magiera
bee0ecf97f
deals: Nicer output in client cli
2019-10-29 13:02:13 +01:00
Łukasz Magiera
738e8c5a3c
deals: Ask prices per GiB
2019-10-29 11:19:39 +01:00
Łukasz Magiera
72af55d067
deals: Price per epoch
2019-10-29 11:01:18 +01:00
Łukasz Magiera
e98feb4a39
fix PowerCmp
2019-10-28 21:28:01 +01:00
Jakub Sztandera
563c0e494e
Use div-free EC power selection function
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-28 20:01:10 +01:00
Łukasz Magiera
6d766ab241
Set e=3
2019-10-28 19:22:40 +01:00
Łukasz Magiera
237f8e8018
Set proving params matching the spec more closely
2019-10-28 17:51:45 +01:00
Adrian Lanzafame
0822bdadac
add statemanager.CallRaw span
...
This allows for the chain.Sync trace to be connected to the
entire chain sync operation, when viewing in Jaeger.
2019-10-28 19:29:41 +10:00
Łukasz Magiera
117ec636c5
paramfetch: check checksums in parallel
2019-10-27 10:18:27 +01:00
Łukasz Magiera
874be79958
very basic sector seal scheduling
2019-10-27 09:56:53 +01:00
whyrusleeping
874ab1456c
WIP: updating to new proofs code
2019-10-25 18:07:34 +02:00
Łukasz Magiera
b8b081faa6
Merge pull request #454 from waynewyang/InitActorState-AddActor
...
fix method:InitActorState.AddActor
2019-10-25 17:40:12 +02:00
Łukasz Magiera
55f22884ab
Merge pull request #457 from waynewyang/MinerActor-CommitSector
...
Check if fromaddress equal workaddress when CommitSector
2019-10-25 17:39:28 +02:00
Łukasz Magiera
bbe5afeee4
Merge pull request #379 from filecoin-project/feat/variable-sector-sizes
...
Allow miners to create differently sized sectors
2019-10-25 17:37:54 +02:00
Łukasz Magiera
cf2bbeb775
Merge pull request #410 from filecoin-project/feat/multisig-lockout
...
Add linear vesting to multisig
2019-10-25 17:34:41 +02:00
whyrusleeping
4890f577f5
give miners the ability to select different sector sizes
2019-10-25 17:26:15 +02:00
Łukasz Magiera
eeca3d86df
Merge pull request #415 from filecoin-project/feat/deals-on-chain
...
On-Chain deals
2019-10-25 17:03:25 +02:00
Łukasz Magiera
3137ffb347
on chain deals: Check StoragePrice
2019-10-25 14:44:34 +02:00
Łukasz Magiera
f2550f9e36
on chain deals: Deal not found is not fatal
2019-10-24 17:56:32 +02:00
Łukasz Magiera
0b1427e487
on chain deals: Fix lint warnings
2019-10-24 17:46:21 +02:00
Łukasz Magiera
9bd086bf7b
Use shorter code cids
2019-10-24 17:39:16 +02:00
Łukasz Magiera
e148f33008
on chain deals: Address review comments
2019-10-24 17:14:25 +02:00
Łukasz Magiera
76f1e6e207
on chain deals: Put dealIDs in CommitSector messages
2019-10-24 16:24:31 +02:00
Whyrusleeping
705637b69f
Merge pull request #448 from filecoin-project/fix/wallet-error
...
Cleanup GetBalance call and warn if actor does not exist
2019-10-24 21:17:23 +08:00
Jakub Sztandera
dd9978b418
Merge pull request #468 from filecoin-project/feat/cache-msg-cids
...
cache block message cids to make blocksync cheaper
2019-10-24 14:47:06 +02:00
waynewyang
34fcbc0bf2
safeguard for multisig actor
2019-10-24 17:13:38 +08:00
whyrusleeping
acb7d57794
fix handling of actor not found for balance checks
2019-10-24 15:55:00 +08:00
whyrusleeping
2a49005ed6
cache block message cids to make blocksync cheaper
2019-10-24 14:24:58 +08:00
Łukasz Magiera
cdd91914b9
on chain deals: Actually set DataSize
2019-10-23 20:04:07 +02:00
Łukasz Magiera
fabd074165
on chain deals: Deals make it to the chain
2019-10-23 19:39:14 +02:00
Łukasz Magiera
61e14d0f4c
on chain deals: Fix some serialization bugs
2019-10-23 14:59:57 +02:00
Łukasz Magiera
1d1f468c98
peer manager: Disable in tests
2019-10-23 13:02:00 +02:00
whyrusleeping
fc7c7ddd97
Initial pass at a peer manager
2019-10-23 12:47:22 +02:00
Łukasz Magiera
bd77bba676
on chain deals: Improve some errors
2019-10-23 12:44:00 +02:00
Łukasz Magiera
8e7e5d3085
on chain deals: Fix deal state serialization
2019-10-23 12:44:00 +02:00
Łukasz Magiera
213ac77d08
on chain deals: Expose more chain state in pond
2019-10-23 12:44:00 +02:00
Łukasz Magiera
64bfb38834
on chain deals: Get things to actually run!
2019-10-23 12:44:00 +02:00
Łukasz Magiera
47d92d4a11
wip
2019-10-23 12:44:00 +02:00
Łukasz Magiera
bafb7e8cfa
on chain deals: deal types cbor-gen
2019-10-23 12:44:00 +02:00
Łukasz Magiera
99ef51a642
on chain deals: Fix build
2019-10-23 12:44:00 +02:00
Łukasz Magiera
46a0333c9c
on chain deals: Wip porting deal systems to storagemarket
2019-10-23 12:44:00 +02:00
Łukasz Magiera
7420dd668e
on chain deals: use cid bytes for PieceRef
2019-10-23 12:44:00 +02:00
Łukasz Magiera
6bade2eb23
on chain deals: More actor methods
2019-10-23 12:44:00 +02:00
Łukasz Magiera
c41dd4efeb
actora: register storagemarket
2019-10-23 12:44:00 +02:00
Łukasz Magiera
8638cd25f5
actors: implement sma.PublishStorageDeals
2019-10-23 12:44:00 +02:00