acruikshank
7873213b11
switch sectorbuilder from lib to external module
...
point to correct version of sectorbuilder + ensure go-datastore stays at 0.1.1
replace local address type with go-address
consume paramfetch.GetParams instead of local paramfetch.go
remove constants now defined in sectorbuilder
2020-01-07 07:48:43 -08:00
hannahhoward
8418464d91
refactor(address): use extracted address library
...
Switch to using extracted address library
2020-01-07 14:53:27 +01:00
laser
6a740a6d67
consume newly-extracted paramfetch
2020-01-02 11:08:49 -08:00
whyrusleeping
e5899f614a
Tag peers who send us good blocks over pubsub
2019-12-19 12:47:55 -08:00
Łukasz Magiera
a4521955d5
libp2p: enable ping
2019-12-18 20:33:13 +01:00
whyrusleeping
619e6ffdd7
fix master build
2019-12-17 14:20:37 -08:00
whyrusleeping
ff5b086f58
mark bootstrap peers as protected
2019-12-17 11:18:19 -08:00
whyrusleeping
ca7e2e76c2
drop miner tagger logic as it doesnt do what we want it to
2019-12-17 10:16:10 -08:00
Łukasz Magiera
8284436eae
Setup PeerTagger as Invoke
2019-12-17 17:28:02 +01:00
Łukasz Magiera
241c7c7ecc
Wire up ConnMgr config
2019-12-17 17:09:43 +01:00
whyrusleeping
7dcc528cd1
tag peers who propagate good blocks to us
2019-12-16 23:06:48 -08:00
whyrusleeping
022581d50b
add routine to tag miners peer IDs as high value in connection manager
2019-12-16 22:51:41 -08:00
whyrusleeping
28b470cb0d
blocksync tagging
2019-12-16 22:15:06 -08:00
whyrusleeping
eb4077b1af
allow specifying some protected peers in the config file
2019-12-16 21:37:31 -08:00
Łukasz Magiera
825e3a0774
sectorbuilder: check free space before creating sectors
2019-12-16 17:16:08 +01:00
whyrusleeping
d6bfbe5a26
allow setting genesis timestamp when initializing network
2019-12-11 15:36:39 +01:00
Łukasz Magiera
ce6912047d
Change pnet key
2019-12-10 23:11:45 +01:00
whyrusleeping
b444771427
setup enough fake peer IDs for miner generation
2019-12-09 19:56:55 +01:00
Łukasz Magiera
c49dc28a04
Move api struct to a seprate pkg
2019-12-09 18:22:11 +01:00
Łukasz Magiera
83924e6b97
sectorbuilder: Allow to restrict task types
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-12-07 19:05:15 +01:00
Łukasz Magiera
6f024bee58
Merge pull request #736 from filecoin-project/feat/params-v20
...
Params v20
2019-12-05 14:03:37 +01:00
whyrusleeping
b7a89b56b3
more statticcheck!
2019-12-04 21:14:19 -08:00
whyrusleeping
df069af5e5
some errcheck discoveries
2019-12-04 21:02:14 -08:00
Łukasz Magiera
3daf9103a8
paramfetch: Only pull necessary params
2019-12-04 20:44:15 +01:00
Łukasz Magiera
160e11ce8c
Merge branch 'master' into feat/remote-workers
2019-12-03 03:24:00 +01:00
whyrusleeping
68e25b36f1
rename to avoid stuttering
2019-12-02 14:33:11 -08:00
whyrusleeping
b58e7344e8
pull messagepool into separate package
2019-12-02 14:33:11 -08:00
whyrusleeping
8da3cc875e
Fix message nonce tracking during head changes
2019-12-02 14:33:11 -08:00
Łukasz Magiera
923748e551
Expand paths in node init
2019-12-02 23:10:22 +01:00
Łukasz Magiera
d5b94884c8
Buch of lint fixes
2019-12-02 13:51:16 +01:00
Łukasz Magiera
a47fbfa799
Merge branch 'devnet/9' into feat/election-post
2019-12-02 12:25:23 +01:00
Łukasz Magiera
a59d0f0f8c
Fix unsealing, sector based data refs
2019-12-01 18:58:31 +01:00
Łukasz Magiera
ed9279cf0c
Some fixes and dev utils
2019-11-30 10:25:31 +01:00
whyrusleeping
3b533ed76c
Genesis miner config actually sets the created miner address now
2019-11-29 22:31:26 -06:00
Łukasz Magiera
cb7d15e67e
genesis setup improvements
2019-11-28 23:50:58 +01:00
Łukasz Magiera
16d5eea9b1
Merge pull request #684 from gguoss/master
...
Delete died code
2019-11-28 14:21:21 +01:00
郭光华
a8093c2962
Delete died code
...
Lotus used kad dht as discovery protocol, not mdns .
2019-11-28 18:06:00 +08:00
Łukasz Magiera
23e0008b81
Merge remote-tracking branch 'origin/master' into feat/election-post
2019-11-27 13:31:44 +01:00
Łukasz Magiera
d5a632f644
sectorbuilder: Drop stateful sectorbuilder refs
2019-11-26 23:13:01 +01:00
whyrusleeping
a0588d513d
Add lotus-gen, rewire genesis mining
2019-11-24 22:45:13 -06:00
Łukasz Magiera
43a5172944
mpool: persist local messages
2019-11-23 20:05:18 +01:00
Łukasz Magiera
2deae35dcc
Merge pull request #672 from filecoin-project/feat/no-pkg-error
...
Swtich to xerrors
2019-11-22 12:40:59 -06:00
Jakub Sztandera
36b7c5a32a
Swtich to xerrors
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-11-22 10:20:56 -06:00
Łukasz Magiera
c7c422abbd
Use config for pubsub tracing
2019-11-20 21:31:00 +01:00
whyrusleeping
f8eabd3db4
Refactor mining logic to match specs ticket chain
2019-11-20 10:52:36 -06:00
vyzo
3a8100fd3c
hardcode pubsub tracer
2019-11-20 01:31:55 +02:00
whyrusleeping
7aa76d21d1
It works!
2019-11-15 13:35:29 -08:00
Jakub Sztandera
2bc5ccab04
Add repub for local messages
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-11-13 23:43:16 +01:00
anorth
84a4766d8f
Add TipSetKey as a concatenation of block CIDs, and use if for ChainGetTipSet, ChainGetRandomness.
2019-11-13 15:23:37 +11:00
hannahhoward
4b3bab371b
refactor(deals): move type instantiation to modules
...
Move all type instantiation to dtypes & modules for any type unique to provider/client
2019-11-11 12:51:28 -08:00
hannahhoward
ccfc3c5b19
refactor(datatransfer): move registrations to builder
...
move registration function for validators to builder code
2019-11-11 12:25:19 -08:00
whyrusleeping
904fdad4c6
extract blocksync into its own package
2019-11-09 15:00:22 -08:00
Łukasz Magiera
3d360167df
sectorbuilder: Call destroy in DI module
2019-11-08 21:30:50 +01:00
Łukasz Magiera
2d26a4edf7
Sector storage refactor
2019-11-07 19:22:59 +01:00
whyrusleeping
9863942fe2
WIP: trying to write a test to reproduce the storage deal error
2019-11-07 00:39:34 +01:00
Łukasz Magiera
ed5ccfd750
Merge remote-tracking branch 'origin/devnet/7' into feat/interactive-porep
2019-11-05 18:53:19 +01:00
Łukasz Magiera
13da5a5966
Put WorkerThreads on sectorbuilder.Config
2019-11-04 17:47:08 +01:00
Łukasz Magiera
3bc4a5dddf
More progress on fixing storing garbage data
2019-11-02 00:43:54 +01:00
Łukasz Magiera
82344649d3
Use state store for sectors
2019-11-01 15:06:49 +01:00
whyrusleeping
fc9091cc89
Get interactive porep sector sealing mostly working
2019-10-31 20:57:10 -07:00
whyrusleeping
a954ebc6b6
Add command to unregister miner from full node manually
2019-10-31 15:04:13 -07:00
whyrusleeping
759094198c
Some more progress on interactive porep
2019-10-30 18:22:50 -07:00
Łukasz Magiera
7fa3e2db7a
WIP Interactive PoRep
2019-10-30 19:10:29 +01:00
Łukasz Magiera
46d782b30b
storageminer: Drop commitment tracker
2019-10-30 18:37:38 +01:00
Łukasz Magiera
ac98c8f451
Use spec complaiant SealRandomnessLookback
2019-10-28 18:14:24 +01:00
Łukasz Magiera
c1076a0c7d
set correct block height in SealTicket
2019-10-27 10:24:20 +01: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
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
5175d8541e
peer manager: Handle bootstrap in peermgr
2019-10-23 13:11:18 +02:00
whyrusleeping
fc7c7ddd97
Initial pass at a peer manager
2019-10-23 12:47:22 +02:00
Łukasz Magiera
46a0333c9c
on chain deals: Wip porting deal systems to storagemarket
2019-10-23 12:44:00 +02:00
Jakub Sztandera
1bf713cb0a
Cleanup imports after rename
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-18 13:47:41 +09:00
whyrusleeping
d818e20df5
Wallets record default address in keystore
2019-10-17 19:18:40 +09:00
Łukasz Magiera
170b49b625
make: fix install, faster bootstrap
2019-10-17 03:24:45 +02:00
Łukasz Magiera
9a536e7cc0
config: Allow overriding bootstrap peers
2019-10-11 05:16:12 +02:00
Łukasz Magiera
40267e15b2
Merge pull request #326 from filecoin-project/feat/periodic-bootstrap
...
Periodic bootstrap
2019-10-11 04:09:01 +02:00
Łukasz Magiera
c0179bd4fa
Periodic bootstrap
2019-10-11 02:31:26 +02:00
Łukasz Magiera
4c5157d270
Lotus Townhall
2019-10-10 14:02:43 +02:00
Łukasz Magiera
b32d197bca
Merge pull request #313 from filecoin-project/fix/genesis-timestamp
...
Fix timestamp in genesis
2019-10-10 04:18:58 +02:00
Jakub Sztandera
79ee959a90
Use log.Warn
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-09 22:23:04 +02:00
Jakub Sztandera
22ad0e176d
Fix timestamp in genesis
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-09 19:08:06 +02:00
Łukasz Magiera
1534536590
Store libp2p key in keystore
2019-10-03 02:11:31 +02:00
Łukasz Magiera
fe8e1fe1e4
Almost working new post code
2019-09-27 01:07:40 +02:00
whyrusleeping
0a0a4d30aa
fix account balances to cover costs and collateral
2019-09-26 12:23:03 -07:00
Łukasz Magiera
a2a2169ef8
Setup first devnet params
2019-09-26 12:13:43 -07:00
Łukasz Magiera
5fa1a74e74
Bump test genesis token amount
2019-09-24 13:02:54 +02:00
whyrusleeping
3154374132
fix account balances to make tests pass
2019-09-19 22:25:10 -07:00
Łukasz Magiera
83f1a336a6
node: Basic graceful shutdown
2019-09-17 16:23:08 +02:00
Łukasz Magiera
eda72468ce
Sector Commitment tracker
2019-09-16 20:08:24 +02:00
whyrusleeping
1075c9a5e0
implement ask query protocol
2019-09-13 16:49:27 -07:00
Łukasz Magiera
72a406ec7e
deals: Better client deal tracking
2019-09-13 19:59:10 +02:00
whyrusleeping
ed45d1c2b4
refactor state utilities into StateManager package, implement proper election proofs
2019-09-09 19:14:00 -07:00
Łukasz Magiera
57d0f7c722
Merge pull request #162 from filecoin-project/feat/retrieval
...
Retrieval
2019-08-31 00:29:00 +02:00
whyrusleeping
b69557251c
Add proper timestamping and checking of timestamps
2019-08-29 19:59:54 -07:00
Łukasz Magiera
fe6d5ff3a8
retrieval: resolve some TODOs
2019-08-29 17:51:52 +02:00
Łukasz Magiera
6714240653
SectorSize const
2019-08-29 17:50:19 +02:00
Łukasz Magiera
be30bc79a5
Retrieval works!
2019-08-29 17:50:19 +02:00
Łukasz Magiera
28d3eb38eb
basic retrieval content discovery
2019-08-29 17:48:19 +02:00
Łukasz Magiera
eda26faf21
Register miner address from storageminer process
2019-08-20 19:19:24 +02:00
whyrusleeping
b2d425b891
TEMP: accept miner address from cli
2019-08-16 12:39:13 -07:00
whyrusleeping
e9d1f3e7c9
WIP: base mining on power and VRFs
2019-08-16 12:39:12 -07:00
Łukasz Magiera
e6493afd46
move poller to sector store
2019-08-14 23:34:43 +02:00
Łukasz Magiera
399f91940b
Sector store
2019-08-14 22:27:32 +02:00
whyrusleeping
ae34757e2a
pull chain call into its own method and fix paych module
2019-08-12 11:30:20 -07:00
whyrusleeping
6d52abcb2e
WIP: wiring up the payment channel manager to the api
2019-08-12 10:54:17 -07:00
whyrusleeping
959fe371b0
move storage miner keys to full node
2019-08-08 10:56:14 -07:00
Łukasz Magiera
b2c3434bcd
deals: Upstream bitswap changes
2019-08-08 19:16:41 +02:00
Łukasz Magiera
7423327b26
deals: Use real data in client
2019-08-07 20:01:51 -07:00
Łukasz Magiera
c79cb7bf31
deals: Almost sealing client data
2019-08-07 20:01:51 -07:00
Łukasz Magiera
b65041cac1
deals: Sending initial proposal works
2019-08-07 20:01:22 -07:00
Łukasz Magiera
ad9e433232
Start implementing storage deals
2019-08-07 20:00:49 -07:00
whyrusleeping
ba0d648546
sealing garbage data into a sector that gets accepted by the chain works!
2019-08-07 18:16:58 -07:00
whyrusleeping
5c32725510
sector commitments make it all the way to the chain
2019-08-07 16:22:35 -07:00
whyrusleeping
ff3433baa1
fix chain progression after restarting process
2019-08-01 23:46:14 -07:00
Łukasz Magiera
cfc3ac795d
Fix tests
2019-08-01 16:26:12 +02:00
Łukasz Magiera
542f645c28
gofmt
2019-08-01 16:20:50 +02:00
Łukasz Magiera
9ae450620a
Cleanup node/modules
2019-08-01 16:19:53 +02:00
Łukasz Magiera
6a4b9a6515
More separation for storage types in di modules
2019-08-01 16:14:16 +02:00
Łukasz Magiera
cdf0e0c858
chain: Test 'manual' sync
2019-07-31 10:43:13 -07:00
Łukasz Magiera
006fbe556f
Use correct ctx for SectorBuilder/Miner
2019-07-31 19:01:04 +02:00
whyrusleeping
ee224e5b21
Implement 'storage miner' module, wire up a few bits it needs to start
2019-07-29 17:46:56 -07:00
whyrusleeping
b83ff6b9dc
Wire up sector builder commands through the api
2019-07-29 12:08:47 -07:00
whyrusleeping
4fb4835b35
can we store it? YES WE CAN
2019-07-29 12:08:47 -07:00
whyrusleeping
f1432826d5
start integrating sector builder
2019-07-29 12:08:05 -07:00
whyrusleeping
71baa5cbfe
implement chain generator
2019-07-26 13:47:29 -07:00
Łukasz Magiera
590b5f0299
Allocate funds in testing.MakeGenesis
2019-07-26 14:51:32 +02:00
whyrusleeping
78da356752
pull more things apart
2019-07-26 13:49:30 +02:00
whyrusleeping
e09ad3d65c
Refactor out more types into types package, and pull genesis block code into gen package
2019-07-25 16:35:47 -07:00
Łukasz Magiera
515fbd41c2
Use go-car for genesis file
2019-07-25 13:46:48 +02:00
Łukasz Magiera
99acdbade0
Better error message when genesis is missing
2019-07-25 01:32:44 +02:00
Łukasz Magiera
f2abb33933
Generate single genesis in tests
2019-07-25 01:23:06 +02:00
Łukasz Magiera
8d58c0a2fd
Only set genesis once
2019-07-25 01:12:22 +02:00
whyrusleeping
4b76a06224
address code review
2019-07-24 14:46:54 -07:00
Łukasz Magiera
81d7c30fac
Couple lint fixes
2019-07-24 03:16:17 +02:00
Łukasz Magiera
b41763d8cf
Fix secret loading in tests
2019-07-24 00:38:52 +02:00
Łukasz Magiera
0aadddb6c8
auth: Load JWT secret once
2019-07-24 00:38:52 +02:00
Jakub Sztandera
935e4e8da7
Move KeyStore into separate module
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-18 18:10:53 +02:00
Łukasz Magiera
d30d9a30bc
Fix test node setup
2019-07-16 18:02:51 +02:00
Łukasz Magiera
041598dbb6
Use extracted go-filestore
2019-07-15 17:08:18 +02:00
Łukasz Magiera
1f6629e978
Basic ClientListImports
2019-07-15 16:18:47 +02:00
Łukasz Magiera
cec4918cd9
Make client import actually work
2019-07-15 16:17:34 +02:00
Łukasz Magiera
97c61d4ce5
Client import
2019-07-15 16:17:34 +02:00
Łukasz Magiera
14d515da3b
Wire up memrepo
2019-07-10 17:38:35 +02:00
Jakub Sztandera
4df601ea6a
Fix imports and range reference warnings
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-08 17:14:36 +02:00
Łukasz Magiera
d1eb9073d1
Pubsub for blocks/messages
2019-07-08 16:07:09 +02:00
Łukasz Magiera
e162b5395c
Construct enough to run hello
2019-07-08 15:36:53 +02:00
Łukasz Magiera
67902da2eb
Merge remote-tracking branch 'origin/master' into feat/f2-chain
2019-07-08 12:47:19 +02:00
Łukasz Magiera
65de28dbdb
Merge remote-tracking branch 'origin/feat/hello-parts' into feat/f2-chain
2019-07-05 16:35:23 +02:00
Jakub Sztandera
71dfa38032
Update linter
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-05 13:21:54 +02:00
Łukasz Magiera
de604065fb
Rewrite constructor to functional opts
2019-07-04 19:34:06 +02:00
Jakub Sztandera
f08263662f
Use config for listen addresses in libp2p
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-04 14:04:39 +02:00
Łukasz Magiera
2b906efa1e
hello: Invohe RunHello
2019-07-03 19:41:54 +02:00
Łukasz Magiera
fdde4db217
hello: Move from f2
2019-07-03 19:39:07 +02:00
Jakub Sztandera
217cb247a5
Move to Warnf
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-03 14:30:21 +02:00
Jakub Sztandera
2a350c6e82
Use zap
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-03 13:55:52 +02:00
Łukasz Magiera
0f8f61fc7b
more lint fixes
2019-07-02 19:45:03 +02:00
Łukasz Magiera
4fcdd4a400
Address some lint warnings
2019-07-02 15:05:43 +02:00
Łukasz Magiera
7fdd369283
Address review
2019-07-02 14:40:25 +02:00
Jakub Sztandera
5736ac1d9d
go fmt
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-01 23:11:34 +02:00
Łukasz Magiera
088c1e7860
Confgure PNet
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-01 23:11:33 +02:00
Łukasz Magiera
0779e7dc00
Build libp2p node
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-01 23:11:33 +02:00
Łukasz Magiera
63627e863e
Import libp2p modules
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-01 23:11:33 +02:00
Łukasz Magiera
795621ed27
Node builder structure
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-01 23:11:33 +02:00