Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: filestar-project/lotus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.1
Choose a base ref
...
head repository: filestar-project/lotus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jun 16, 2021

  1. Copy the full SHA
    e75997e View commit details
  2. Copy the full SHA
    0a0273f View commit details

Commits on Jun 17, 2021

  1. chore(dep): update bitswap to fix an initialization race that could p…

    …anic
    
    In rare cases, if bitswap receives a message before it finishes starting up, it
    could panic. This release fixes that.
    Stebalien authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    96029e9 View commit details
  2. Copy the full SHA
    213d31d View commit details
  3. Remove all Chain GC wrappings/types

    There is no practical way to do GC against the chainstore given the current
    state of affairs: remove all GC-related types for the time being.
    ribasushi authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    3b0e48d View commit details
  4. Print Consensus Faults in miner info

    Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
    Jakub Sztandera authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    45c605b View commit details
  5. Copy the full SHA
    6adefe2 View commit details
  6. Copy the full SHA
    2c087bc View commit details
  7. Copy the full SHA
    d0177d5 View commit details
  8. Update go to 1.15.5

    Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
    Jakub Sztandera authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    5ab486e View commit details
  9. Copy the full SHA
    66bf77d View commit details
  10. Copy the full SHA
    a84fa93 View commit details
  11. Copy the full SHA
    9eaa22b View commit details
  12. Copy the full SHA
    96812fe View commit details
  13. add go main version

    zgfzgf authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    42566a3 View commit details
  14. CLI to get network version

    arajasek authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    d92dc2a View commit details
  15. fix lint

    magik6k authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    4956340 View commit details
  16. Copy the full SHA
    ea998b9 View commit details
  17. Copy the full SHA
    f9d7970 View commit details
  18. combine add and remove evts and use a single emitter

    to reduce likelihood of races
    vyzo authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    0deae85 View commit details
  19. Copy the full SHA
    cbd4eb8 View commit details
  20. fix nil pointer

    leviok authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    d4192e3 View commit details
  21. correct it

    leviok authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    2522063 View commit details
  22. Copy the full SHA
    1b0b2ab View commit details
  23. Copy the full SHA
    bda65cc View commit details
  24. Copy the full SHA
    33640df View commit details
  25. Copy the full SHA
    a10b073 View commit details
  26. Format workerID as string

    shaodan authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    a0da02c View commit details
  27. Fix actor not found in chain inspect-usage

    Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
    Jakub Sztandera authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    f1bfd79 View commit details
  28. fix wallet dead lock

    zgfzgf authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    d606dbe View commit details
  29. Copy the full SHA
    5cecbbd View commit details
  30. Copy the full SHA
    12a2894 View commit details
  31. Copy the full SHA
    d59eed2 View commit details
  32. Copy the full SHA
    771a76e View commit details
  33. Copy the full SHA
    727eb16 View commit details
  34. fix lint check

    zgfzgf authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    bb9f415 View commit details
  35. Copy the full SHA
    e22e320 View commit details
  36. Copy the full SHA
    adcbf54 View commit details
  37. Copy the full SHA
    7e56bc0 View commit details
  38. Copy the full SHA
    0e733db View commit details
  39. client list-asks --by-ping

    magik6k authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    cca6152 View commit details
  40. Print hex

    ZenGround0 authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    4f7f63c View commit details
  41. Copy the full SHA
    ac3d0c6 View commit details
  42. Copy the full SHA
    e3ee926 View commit details
  43. Enable Callers tracing when GasTracing is enabled

    Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
    Jakub Sztandera authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    1c11ba1 View commit details
  44. Copy the full SHA
    9cd6544 View commit details
  45. Copy the full SHA
    b63cb8d View commit details
  46. Making sealing logic work with multiple seal proof types

    # Conflicts:
    #	build/params_mainnet.go
    #	extern/sector-storage/faults.go
    #	go.mod
    magik6k authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    80770c1 View commit details
  47. update specs-storage to fix build

    # Conflicts:
    #	go.mod
    #	go.sum
    Stebalien authored and codefather-filestar committed Jun 17, 2021
    Copy the full SHA
    51d6bc3 View commit details
  48. Copy the full SHA
    8e4958a View commit details
Showing with 12,401 additions and 3,066 deletions.
  1. +3 −3 .circleci/config.yml
  2. +0 −4 .gitmodules
  3. +62 −2 CHANGELOG.md
  4. +4 −4 Makefile
  5. +1 −0 api/api_common.go
  6. +32 −0 api/api_full.go
  7. +2 −0 api/api_gateway.go
  8. +43 −3 api/api_storage.go
  9. +159 −38 api/apistruct/struct.go
  10. +14 −5 api/cbor_gen.go
  11. +3 −3 api/test/ccupgrade.go
  12. +159 −142 api/test/deals.go
  13. +1 −1 api/test/mining.go
  14. +9 −3 api/test/test.go
  15. +14 −9 api/test/window_post.go
  16. +16 −0 api/types.go
  17. +5 −5 build/bootstrap/bootstrappers.pi
  18. +9 −3 build/params_2k.go
  19. +6 −0 build/params_8g.go
  20. +11 −3 build/params_mainnet.go
  21. +9 −0 build/params_shared_funcs.go
  22. +6 −3 build/params_shared_vals.go
  23. +17 −8 build/params_testground.go
  24. +1 −0 build/tools.go
  25. +9 −6 build/version.go
  26. +1 −49 chain/actors/adt/adt.go
  27. +7 −1 chain/actors/builtin/account/account.go
  28. +30 −0 chain/actors/builtin/account/v3.go
  29. +20 −10 chain/actors/builtin/builtin.go
  30. +3 −3 chain/actors/builtin/cron/cron.go
  31. +8 −2 chain/actors/builtin/init/init.go
  32. +86 −0 chain/actors/builtin/init/v3.go
  33. +8 −2 chain/actors/builtin/market/market.go
  34. +205 −0 chain/actors/builtin/market/v3.go
  35. +89 −3 chain/actors/builtin/miner/miner.go
  36. +84 −0 chain/actors/builtin/miner/utils.go
  37. +7 −2 chain/actors/builtin/miner/v0.go
  38. +7 −2 chain/actors/builtin/miner/v2.go
  39. +440 −0 chain/actors/builtin/miner/v3.go
  40. +9 −6 chain/actors/builtin/multisig/message.go
  41. +71 −0 chain/actors/builtin/multisig/message3.go
  42. +6 −0 chain/actors/builtin/multisig/state.go
  43. +1 −1 chain/actors/builtin/multisig/state0.go
  44. +94 −0 chain/actors/builtin/multisig/state3.go
  45. +4 −2 chain/actors/builtin/paych/message.go
  46. +74 −0 chain/actors/builtin/paych/message3.go
  47. +6 −0 chain/actors/builtin/paych/state.go
  48. +104 −0 chain/actors/builtin/paych/state3.go
  49. +8 −2 chain/actors/builtin/power/power.go
  50. +149 −0 chain/actors/builtin/power/v3.go
  51. +8 −2 chain/actors/builtin/reward/reward.go
  52. +86 −0 chain/actors/builtin/reward/v3.go
  53. +14 −138 chain/actors/builtin/stake/stake.go
  54. +151 −0 chain/actors/builtin/stake/v2.go
  55. +143 −0 chain/actors/builtin/stake/v3.go
  56. +64 −0 chain/actors/builtin/token/token.go
  57. +312 −0 chain/actors/builtin/token/v3.go
  58. +11 −5 chain/actors/builtin/verifreg/util.go
  59. +13 −4 chain/actors/builtin/verifreg/v0.go
  60. +13 −4 chain/actors/builtin/verifreg/v2.go
  61. +58 −0 chain/actors/builtin/verifreg/v3.go
  62. +8 −2 chain/actors/builtin/verifreg/verifreg.go
  63. +76 −11 chain/actors/policy/policy.go
  64. +3 −1 chain/actors/version.go
  65. +28 −16 chain/events/events.go
  66. +2 −0 chain/events/events_height.go
  67. +3 −0 chain/exchange/cbor_gen.go
  68. +10 −4 chain/exchange/peer_tracker.go
  69. +9 −19 chain/gen/gen.go
  70. +3 −3 chain/gen/genesis/miners.go
  71. +34 −0 chain/gen/genesis/t95_token.go
  72. +4 −0 chain/market/cbor_gen.go
  73. +2 −2 chain/market/fundmanager.go
  74. +89 −2 chain/messagepool/messagepool.go
  75. +134 −0 chain/messagepool/messagepool_test.go
  76. +84 −3 chain/messagepool/selection.go
  77. +67 −35 chain/state/statetree.go
  78. +464 −93 chain/stmgr/forks.go
  79. +166 −2 chain/stmgr/forks_test.go
  80. +68 −14 chain/stmgr/stmgr.go
  81. +12 −27 chain/stmgr/utils.go
  82. +1 −0 chain/store/index_test.go
  83. +31 −12 chain/store/store.go
  84. +6 −2 chain/store/store_test.go
  85. +5 −1 chain/sub/incoming.go
  86. +8 −6 chain/sync.go
  87. +1 −0 chain/sync_manager.go
  88. +5 −2 chain/sync_manager_test.go
  89. +3 −0 chain/types/cbor_gen.go
  90. +1 −1 chain/types/message.go
  91. +23 −1 chain/types/mock/chain.go
  92. +3 −1 chain/types/state.go
  93. +53 −1 chain/vm/gas.go
  94. +6 −3 chain/vm/invoker.go
  95. +10 −0 chain/vm/mkactor.go
  96. +2 −1 chain/vm/runtime.go
  97. +18 −6 chain/vm/syscalls.go
  98. +23 −14 chain/wallet/wallet.go
  99. +5 −2 cli/backup.go
  100. +94 −1 cli/chain.go
  101. +44 −14 cli/client.go
  102. +1 −0 cli/cmd.go
  103. +1 −1 cli/log.go
  104. +44 −4 cli/mpool.go
  105. +5 −5 cli/multisig.go
  106. +40 −10 cli/net.go
  107. +4 −4 cli/send.go
  108. +39 −1 cli/state.go
  109. +1 −1 cli/test/client.go
  110. +1,061 −0 cli/token.go
  111. +2 −0 cmd/lotus-bench/import.go
  112. +39 −36 cmd/lotus-bench/main.go
  113. +6 −6 cmd/lotus-chainwatch/processor/processor.go
  114. +17 −0 cmd/lotus-gateway/api.go
  115. +6 −2 cmd/lotus-gateway/endtoend_test.go
  116. +14 −10 cmd/lotus-seal-worker/main.go
  117. +34 −0 cmd/lotus-seed/genesis.go
  118. +3 −4 cmd/lotus-seed/main.go
  119. +15 −17 cmd/lotus-seed/seed/seed.go
  120. +6 −4 cmd/lotus-shed/balances.go
  121. +11 −5 cmd/lotus-shed/datastore.go
  122. +4 −2 cmd/lotus-shed/export.go
  123. +1 −0 cmd/lotus-shed/genesis-verify.go
  124. +7 −2 cmd/lotus-shed/import-car.go
  125. +1 −1 cmd/lotus-shed/jwt.go
  126. +1 −1 cmd/lotus-shed/keyinfo.go
  127. +5 −1 cmd/lotus-shed/ledger.go
  128. +4 −2 cmd/lotus-shed/pruning.go
  129. +68 −36 cmd/lotus-shed/rpc.go
  130. +60 −36 cmd/lotus-storage-miner/actor.go
  131. +1 −1 cmd/lotus-storage-miner/actor_test.go
  132. +1 −1 cmd/lotus-storage-miner/allinfo_test.go
  133. +8 −11 cmd/lotus-storage-miner/info.go
  134. +39 −19 cmd/lotus-storage-miner/init.go
  135. +2 −1 cmd/lotus-storage-miner/init_restore.go
  136. +89 −0 cmd/lotus-storage-miner/market.go
  137. +13 −5 cmd/lotus-storage-miner/proving.go
  138. +218 −4 cmd/lotus-storage-miner/sectors.go
  139. +245 −0 cmd/lotus-wallet/interactive.go
  140. +33 −2 cmd/lotus-wallet/main.go
  141. +11 −16 cmd/lotus/daemon.go
  142. +10 −4 cmd/tvx/extract.go
  143. +2 −0 conformance/driver.go
  144. +50 −0 documentation/en/api-methods-miner.md
  145. +1 −1 documentation/en/architecture/architecture.md
  146. +1 −1 extern/filecoin-ffi
  147. +10 −3 extern/sector-storage/cbor_gen.go
  148. +57 −10 extern/sector-storage/faults.go
  149. +6 −5 extern/sector-storage/ffiwrapper/basicfs/fs.go
  150. +0 −36 extern/sector-storage/ffiwrapper/config.go
  151. +0 −12 extern/sector-storage/ffiwrapper/sealer.go
  152. +84 −59 extern/sector-storage/ffiwrapper/sealer_cgo.go
  153. +44 −39 extern/sector-storage/ffiwrapper/sealer_test.go
  154. +3 −3 extern/sector-storage/ffiwrapper/types.go
  155. +8 −4 extern/sector-storage/ffiwrapper/verifier_cgo.go
  156. +50 −49 extern/sector-storage/manager.go
  157. +19 −17 extern/sector-storage/manager_test.go
  158. +56 −56 extern/sector-storage/mock/mock.go
  159. +2 −2 extern/sector-storage/mock/mock_test.go
  160. +1 −1 extern/sector-storage/request_queue.go
  161. +3 −3 extern/sector-storage/resources.go
  162. +4 −10 extern/sector-storage/roprov.go
  163. +10 −13 extern/sector-storage/sched.go
  164. +4 −4 extern/sector-storage/sched_resources.go
  165. +31 −28 extern/sector-storage/sched_test.go
  166. +5 −5 extern/sector-storage/sched_worker.go
  167. +1 −1 extern/sector-storage/stats.go
  168. +7 −1 extern/sector-storage/stores/http_handler.go
  169. +19 −3 extern/sector-storage/stores/index.go
  170. +4 −3 extern/sector-storage/stores/interface.go
  171. +21 −10 extern/sector-storage/stores/local.go
  172. +27 −15 extern/sector-storage/stores/remote.go
  173. +6 −1 extern/sector-storage/storiface/cbor_gen.go
  174. +4 −0 extern/sector-storage/storiface/ffi.go
  175. +18 −0 extern/sector-storage/storiface/filetype.go
  176. +11 −11 extern/sector-storage/storiface/worker.go
  177. +11 −11 extern/sector-storage/teststorage_test.go
  178. +6 −11 extern/sector-storage/testworker_test.go
  179. +49 −46 extern/sector-storage/worker_local.go
  180. +11 −11 extern/sector-storage/worker_tracked.go
  181. +0 −1 extern/specs-actors
  182. +38 −1 extern/storage-sealing/cbor_gen.go
  183. +3 −13 extern/storage-sealing/checks.go
  184. +209 −0 extern/storage-sealing/currentdealinfo.go
  185. +310 −0 extern/storage-sealing/currentdealinfo_test.go
  186. +41 −8 extern/storage-sealing/fsm.go
  187. +15 −0 extern/storage-sealing/fsm_test.go
  188. +17 −6 extern/storage-sealing/garbage.go
  189. +2 −0 extern/storage-sealing/sealiface/config.go
  190. +93 −31 extern/storage-sealing/sealing.go
  191. +2 −1 extern/storage-sealing/sector_state.go
  192. +65 −18 extern/storage-sealing/states_failed.go
  193. +1 −1 extern/storage-sealing/states_proving.go
  194. +60 −30 extern/storage-sealing/states_sealing.go
  195. +351 −0 extern/storage-sealing/terminate_batch.go
  196. +7 −2 extern/storage-sealing/types.go
  197. +23 −8 extern/storage-sealing/types_test.go
  198. +27 −23 go.mod
  199. +82 −92 go.sum
  200. +85 −0 lib/backupds/backupds_test.go
  201. +132 −0 lib/backupds/cbor.go
  202. +57 −4 lib/backupds/datastore.go
  203. +254 −0 lib/backupds/log.go
  204. +56 −15 lib/backupds/read.go
  205. +0 −4 lib/blockstore/blockstore.go
  206. +3 −4 lib/blockstore/memstore.go
  207. +23 −7 lib/ipfsbstore/ipfsbstore.go
  208. +28 −11 lib/peermgr/peermgr.go
  209. +8 −4 markets/retrievaladapter/provider.go
  210. +53 −0 markets/storageadapter/api.go
  211. +24 −12 markets/storageadapter/client.go
  212. +379 −0 markets/storageadapter/dealpublisher.go
  213. +333 −0 markets/storageadapter/dealpublisher_test.go
  214. +0 −99 markets/storageadapter/getcurrentdealinfo.go
  215. +0 −263 markets/storageadapter/getcurrentdealinfo_test.go
  216. +227 −67 markets/storageadapter/ondealsectorcommitted.go
  217. +349 −149 markets/storageadapter/ondealsectorcommitted_test.go
  218. +71 −37 markets/storageadapter/provider.go
  219. +21 −0 metrics/metrics.go
  220. +152 −67 miner/miner.go
  221. +2 −0 miner/warmup.go
  222. +253 −195 node/builder.go
  223. +50 −17 node/config/def.go
  224. +3 −0 node/hello/cbor_gen.go
  225. +27 −16 node/impl/client/client.go
  226. +31 −0 node/impl/common/common.go
  227. +5 −2 node/impl/full/gas.go
  228. +192 −56 node/impl/full/state.go
  229. +113 −20 node/impl/storminer.go
  230. +9 −7 node/modules/chain.go
  231. +28 −9 node/modules/client.go
  232. +16 −0 node/modules/dtypes/miner.go
  233. +0 −2 node/modules/dtypes/storage.go
  234. +30 −26 node/modules/graphsync.go
  235. +17 −0 node/modules/lp2p/conngater.go
  236. +33 −3 node/modules/mpoolnonceapi.go
  237. +20 −0 node/modules/stmgr.go
  238. +28 −6 node/modules/storage.go
  239. +134 −41 node/modules/storageminer.go
  240. +1 −1 node/modules/testing/genesis.go
  241. +16 −6 node/node_test.go
  242. +24 −3 node/repo/fsrepo.go
  243. +2 −1 node/repo/fsrepo_ds.go
  244. +4 −3 node/repo/interface.go
  245. +3 −2 node/repo/memrepo.go
  246. +1 −1 node/repo/retrievalstoremgr/retrievalstoremgr_test.go
  247. +25 −11 node/test/builder.go
  248. +10 −3 paychmgr/cbor_gen.go
  249. +4 −2 paychmgr/settler/settler.go
  250. +1 −1 paychmgr/simple.go
  251. +32 −10 storage/adapter_storage_miner.go
  252. +92 −51 storage/addresses.go
  253. +13 −13 storage/miner.go
  254. +7 −8 storage/mockstorage/preseal.go
  255. +5 −2 storage/wdpost_changehandler.go
  256. +6 −6 storage/wdpost_changehandler_test.go
  257. +96 −26 storage/wdpost_run.go
  258. +47 −6 storage/wdpost_run_test.go
  259. +7 −7 storage/wdpost_sched.go
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ orbs:
executors:
golang:
docker:
- image: circleci/golang:1.14.6
- image: circleci/golang:1.15.5
resource_class: 2xlarge
ubuntu:
docker:
@@ -294,8 +294,8 @@ jobs:
- run:
name: Install go
command: |
curl -O https://dl.google.com/go/go1.14.2.darwin-amd64.pkg && \
sudo installer -pkg go1.14.2.darwin-amd64.pkg -target /
curl -O https://dl.google.com/go/go1.15.5.darwin-amd64.pkg && \
sudo installer -pkg go1.15.5.darwin-amd64.pkg -target /
- run:
name: Install pkg-config
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -8,7 +8,3 @@
[submodule "extern/test-vectors"]
path = extern/test-vectors
url = https://github.com/filecoin-project/test-vectors.git
[submodule "extern/specs-actors"]
path = extern/specs-actors
url = https://github.com/filestar-project/specs-actors.git
branch = master
64 changes: 62 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,68 @@
# Lotus changelog

# 1.1.3 / 2020-11-13
# 1.3.4

This is an optional release of Lotus that upgrades Lotus dependencies, and includes many performance enhancements, bugfixes, and UX improvements.
This is an optional release of Filestar that upgrades Lotus dependencies, and includes many performance enhancements, bugfixes, and UX improvements.

## Changes
* bind PC1/PC2 to same worker by default, you can also set `BindPC1PC2=false` in miner config to disable it. (https://github.com/filestar-project/lotus/pull/33)
* upgrade bellperson to 0.14. (https://github.com/filestar-project/lotus/commit/38df477a396134c9e08a0850699f9cf472f6a983)
* revert failed BlockGasLimit change in Upgrade8GiBSector. (https://github.com/filestar-project/lotus/commit/2e3a47ccc7ba90f48c8345e583958bbcc2ca4fe1)
* fix cache remove when `lotus-miner sectors remove` an aborted PC1 job. (https://github.com/filestar-project/lotus/pull/34)

# 1.3.3

This is an optional release of Filestar that upgrades Lotus dependencies, and includes many performance enhancements, bugfixes, and UX improvements.

## Changes
* miner: break loop when found warm up sector (https://github.com/filestar-project/lotus/commit/a7174eeb95dc93045a261f4a08e138484101cbb0)
* miner: optimize code use existence var (https://github.com/filestar-project/lotus/commit/68f0e1e47e6753b8851216b0fec6d93bb1c9bb34)
* update miner default config (https://github.com/filestar-project/lotus/commit/fb62d2870bc1f73b1f22eca142c4c3968df7ff22 , https://github.com/filestar-project/lotus/commit/73cfbb874214a794c774554fb9b8bd0ed78ea7c1)
* fix fix drop sector (https://github.com/filestar-project/lotus/commit/5953a221e8d704eb7d92e7fe65dfaf22c63c4dc2)
* fix health report (https://github.com/filestar-project/lotus/commit/59fdff68953b13520630fb46833c15712aee611d)
* fix a coding error in truncating sector log (https://github.com/filestar-project/lotus/commit/a4d704e34d8fd8601ddaf638e38d9015fb871e64)
* storagefsm: Fix unsealedInfoMap.lk init race (https://github.com/filestar-project/lotus/commit/1718ad14cef45cef0c60092f91df37a72f249084)
* fix 2k devnet (https://github.com/filestar-project/lotus/commit/2231ac25d65b1030975389685bef3e33edc49691)
* use opencl implementation PC2 with 2x speed improvement (https://github.com/filestar-project/lotus/commit/5c3fd1b2c52e0025fd6c34288361a257ec9b84c3)


# 1.3.2

This is an optional release of Filestar that upgrades Lotus dependencies, and includes many performance enhancements, bugfixes, and UX improvements.

## Changes

### bug fix
* fix badger double open on `daemon --import-snapshot`; chainstore lifecycle (https://github.com/filestar-project/lotus/commit/0a0273f6771187dd9f6d50581e11c0bc457767bf)
* update bitswap to fix an initialization race that could panic (https://github.com/filestar-project/lotus/commit/96029e90f99475e307f4369bb887af6ed684feeb)
* upgrade go-data-transfer to fix cid recording issue (https://github.com/filestar-project/lotus/commit/2c087bc97042b3185c307d3a79ed5aae374132d4)
* Fix MaxSealingSectrosForDeals getting reset to 0 (https://github.com/filestar-project/lotus/commit/66bf77d796ec08b2663e1937049c6dbb06dd4dce)
* fix get sector nil pointer bug (https://github.com/filestar-project/lotus/commit/cbd4eb86a177a9f79cf5688ceadcf514bfe7fa10)
* storagefsm: Fix expired ticket retry loop (https://github.com/filestar-project/lotus/commit/bda65cc765495491ddc0c7e199918e8fbbe762a4)
* Fix actor not found in chain inspect-usage (https://github.com/filestar-project/lotus/commit/f1bfd7900910157d0302777c59c59839a66d36e6)
* fix wallet delete address where address is default (https://github.com/filestar-project/lotus/commit/727eb16df9167a14b25f22a5bf465e68340b5754)
* Fix helptext for verified-deal default in client deal (https://github.com/filestar-project/lotus/commit/e3ee92646649bf3b6da134715bd989f048fe9ba0)
* fix: avoid potential hang when starting event listener (https://github.com/filestar-project/lotus/commit/8ddbbb61f0621a24494e2a1e522a51391297b8dc)
* remove old cache before SealPreCommitPhase2 (https://github.com/filestar-project/lotus/commit/6193a6094076e100db6500c13551d5e73d4eaca8)
* ipfsbstore: Fix has for non-existing blocks (https://github.com/filestar-project/lotus/commit/4c9c0963e7bfd57dc93bf41ff42141f6c93de8d3)
* Update go-jsonrpc fixing websocket reconnecting (https://github.com/filestar-project/lotus/commit/26b4e37641d028df6cba5a045ad49f5a4b3db00e)
* Fix bootstrapper profile setting (https://github.com/filestar-project/lotus/commit/3c48faac65b541b0ec44925077b7723438b87dd6)

### improvements
* Speed up worker key retrieval (https://github.com/filestar-project/lotus/commit/d0177d521ce628806ae1154c25776a02c50594d2)
* Check (pre)commit receipt before other checks in failed states (https://github.com/filestar-project/lotus/commit/a84fa93e48746f2c7e5928288c006dd6b0b80573)
* wdpost: Retry proofs if we generate an incorrect one (https://github.com/filestar-project/lotus/commit/b0567537d0e14e6114d123a6598f8b05614356f6)
* Allow multisigs to be set as miner owner address (https://github.com/filestar-project/lotus/commit/aa639cd1efa436a58035519258b83080e03a6039)
* Improve error message with importing a chain (https://github.com/filestar-project/lotus/commit/6bb254210d876e5488de7931fdf7765862da995b)

### cmd/api
* support `--by-ping` for `client list-asks` (https://github.com/filestar-project/lotus/commit/cca6152b92e471ef0703aad859b6ecd0933eda6e)
* support `--slow` for `lotus-miner proving check` (https://github.com/filestar-project/lotus/commit/06c4c1bd361cbfab0d34c44537d37c91e3f10096)


# 1.3.1 / 2021-6-10

This is an optional release of Filestar that upgrades Lotus dependencies, and includes many performance enhancements, bugfixes, and UX improvements.

## Highlights

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -5,10 +5,10 @@ all: build

unexport GOFLAGS

GOVERSION:=$(shell go version | cut -d' ' -f 3 | cut -d. -f 2)
ifeq ($(shell expr $(GOVERSION) \< 14), 1)
$(warning Your Golang version is go 1.$(GOVERSION))
$(error Update Golang to version $(shell grep '^go' go.mod))
GOVERSION:=$(shell go version | cut -d' ' -f 3 | sed 's/^go//' | awk -F. '{printf "%d%03d%03d", $$1, $$2, $$3}')
ifeq ($(shell expr $(GOVERSION) \< 1015005), 1)
$(warning Your Golang version is go$(shell expr $(GOVERSION) / 1000000).$(shell expr $(GOVERSION) % 1000000 / 1000).$(shell expr $(GOVERSION) % 1000))
$(error Update Golang to version to at least 1.15.5)
endif

# git modules that need to be loaded
1 change: 1 addition & 0 deletions api/api_common.go
Original file line number Diff line number Diff line change
@@ -33,6 +33,7 @@ type Common interface {
NetPubsubScores(context.Context) ([]PubsubScore, error)
NetAutoNatStatus(context.Context) (NatInfo, error)
NetAgentVersion(ctx context.Context, p peer.ID) (string, error)
NetPeerInfo(context.Context, peer.ID) (*ExtendedPeerInfo, error)

// NetBandwidthStats returns statistics about the nodes total bandwidth
// usage and current rate across all peers and protocols.
32 changes: 32 additions & 0 deletions api/api_full.go
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/filecoin-project/lotus/chain/actors/builtin/stake"
"github.com/filecoin-project/lotus/chain/actors/builtin/token"
"time"

datatransfer "github.com/filecoin-project/go-data-transfer"
@@ -458,6 +459,18 @@ type FullNode interface {
StateStakerVestingReward(context.Context, address.Address, types.TipSetKey) (abi.TokenAmount, error)
StateStakerAvailableReward(context.Context, address.Address, types.TipSetKey) (abi.TokenAmount, error)

// token
StateTokenInfo(context.Context, types.TipSetKey) (*token.TokenStateInfo, error)
StateTokenCreators(context.Context, types.TipSetKey) ([]address.Address, error)
StateTokenCreatorByTokenID(context.Context, big.Int, types.TipSetKey) (address.Address, error)
StateTokenIDsByCreator(context.Context, address.Address, types.TipSetKey) ([]big.Int, error)
StateTokenURIByTokenID(context.Context, big.Int, types.TipSetKey) (string, error)
StateTokenBalanceByTokenID(context.Context, big.Int, types.TipSetKey) ([]*token.TokenBalanceInfoByTokenID, error)
StateTokenBalanceByAddr(context.Context, address.Address, types.TipSetKey) ([]*token.TokenBalanceInfoByAddr, error)
StateTokenBalanceByTokenIDAndAddr(context.Context, big.Int, address.Address, types.TipSetKey) (abi.TokenAmount, error)
StateTokenBalanceByTokenIDsAndAddrs(context.Context, []big.Int, []address.Address, types.TipSetKey) ([]abi.TokenAmount, error)
StateTokenIsAllApproved(context.Context, address.Address, address.Address, types.TipSetKey) (bool, error)

// MethodGroup: Msig
// The Msig methods are used to interact with multisig wallets on the
// filecoin network
@@ -469,6 +482,12 @@ type FullNode interface {
// MsigGetVested returns the amount of FIL that vested in a multisig in a certain period.
// It takes the following params: <multisig address>, <start epoch>, <end epoch>
MsigGetVested(context.Context, address.Address, types.TipSetKey, types.TipSetKey) (types.BigInt, error)

//MsigGetPending returns pending transactions for the given multisig
//wallet. Once pending transactions are fully approved, they will no longer
//appear here.
MsigGetPending(context.Context, address.Address, types.TipSetKey) ([]*MsigTransaction, error)

// MsigCreate creates a multisig wallet
// It takes the following params: <required number of senders>, <approving addresses>, <unlock duration>
//<initial balance>, <sender address of the create msg>, <gas price>
@@ -640,6 +659,7 @@ type Message struct {

type ActorState struct {
Balance types.BigInt
Code cid.Cid
State interface{}
}

@@ -835,6 +855,8 @@ const (

func (v SyncStateStage) String() string {
switch v {
case StageIdle:
return "idle"
case StageHeaders:
return "header sync"
case StagePersistHeaders:
@@ -965,3 +987,13 @@ type MessageMatch struct {
To address.Address
From address.Address
}

type MsigTransaction struct {
ID int64
To address.Address
Value abi.TokenAmount
Method abi.MethodNum
Params []byte

Approved []address.Address
}
2 changes: 2 additions & 0 deletions api/api_gateway.go
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ type GatewayAPI interface {
MpoolPush(ctx context.Context, sm *types.SignedMessage) (cid.Cid, error)
MsigGetAvailableBalance(ctx context.Context, addr address.Address, tsk types.TipSetKey) (types.BigInt, error)
MsigGetVested(ctx context.Context, addr address.Address, start types.TipSetKey, end types.TipSetKey) (types.BigInt, error)
MsigGetPending(context.Context, address.Address, types.TipSetKey) ([]*MsigTransaction, error)
StateAccountKey(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)
StateDealProviderCollateralBounds(ctx context.Context, size abi.PaddedPieceSize, verified bool, tsk types.TipSetKey) (DealCollateralBounds, error)
StateGetActor(ctx context.Context, actor address.Address, ts types.TipSetKey) (*types.Actor, error)
@@ -39,6 +40,7 @@ type GatewayAPI interface {
StateMinerProvingDeadline(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*dline.Info, error)
StateMinerPower(context.Context, address.Address, types.TipSetKey) (*MinerPower, error)
StateNetworkVersion(context.Context, types.TipSetKey) (network.Version, error)
StateSectorGetInfo(ctx context.Context, maddr address.Address, n abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorOnChainInfo, error)
StateVerifiedClientStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*abi.StoragePower, error)
StateWaitMsg(ctx context.Context, msg cid.Cid, confidence uint64) (*MsgLookup, error)
}
46 changes: 43 additions & 3 deletions api/api_storage.go
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ package api
import (
"bytes"
"context"
"github.com/filecoin-project/specs-storage/storage"
"time"

datatransfer "github.com/filecoin-project/go-data-transfer"
@@ -15,6 +16,8 @@ import (
"github.com/filecoin-project/go-fil-markets/retrievalmarket"
"github.com/filecoin-project/go-fil-markets/storagemarket"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/specs-actors/v2/actors/builtin/market"

"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/extern/sector-storage/fsutil"
"github.com/filecoin-project/lotus/extern/sector-storage/stores"
@@ -28,6 +31,7 @@ type StorageMiner interface {
ActorAddress(context.Context) (address.Address, error)

ActorSectorSize(context.Context, address.Address) (abi.SectorSize, error)
ActorAddressConfig(ctx context.Context) (AddressConfig, error)

MiningBase(context.Context) (*types.TipSet, error)

@@ -40,6 +44,12 @@ type StorageMiner interface {
// List all staged sectors
SectorsList(context.Context) ([]abi.SectorNumber, error)

// Get summary info of sectors
SectorsSummary(ctx context.Context) (map[SectorState]int, error)

// List sectors in particular states
SectorsListInStates(context.Context, []SectorState) ([]abi.SectorNumber, error)

SectorsRefs(context.Context) (map[string][]SealedRef, error)

// SectorStartSealing can be called on sectors in Empty or WaitDeals states
@@ -86,10 +96,12 @@ type StorageMiner interface {
MarketGetRetrievalAsk(ctx context.Context) (*retrievalmarket.Ask, error)
MarketListDataTransfers(ctx context.Context) ([]DataTransferChannel, error)
MarketDataTransferUpdates(ctx context.Context) (<-chan DataTransferChannel, error)
// MinerRestartDataTransfer attempts to restart a data transfer with the given transfer ID and other peer
// MarketRestartDataTransfer attempts to restart a data transfer with the given transfer ID and other peer
MarketRestartDataTransfer(ctx context.Context, transferID datatransfer.TransferID, otherPeer peer.ID, isInitiator bool) error
// ClientCancelDataTransfer cancels a data transfer with the given transfer ID and other peer
// MarketCancelDataTransfer cancels a data transfer with the given transfer ID and other peer
MarketCancelDataTransfer(ctx context.Context, transferID datatransfer.TransferID, otherPeer peer.ID, isInitiator bool) error
MarketPendingDeals(ctx context.Context) (PendingDealInfo, error)
MarketPublishPendingDeals(ctx context.Context) error

DealsImportData(ctx context.Context, dealPropCid cid.Cid, file string) error
DealsList(ctx context.Context) ([]MarketDeal, error)
@@ -103,6 +115,10 @@ type StorageMiner interface {
DealsSetConsiderOfflineStorageDeals(context.Context, bool) error
DealsConsiderOfflineRetrievalDeals(context.Context) (bool, error)
DealsSetConsiderOfflineRetrievalDeals(context.Context, bool) error
DealsConsiderVerifiedStorageDeals(context.Context) (bool, error)
DealsSetConsiderVerifiedStorageDeals(context.Context, bool) error
DealsConsiderUnverifiedStorageDeals(context.Context) (bool, error)
DealsSetConsiderUnverifiedStorageDeals(context.Context, bool) error

StorageAddLocal(ctx context.Context, path string) error

@@ -117,7 +133,7 @@ type StorageMiner interface {
// the path specified when calling CreateBackup is within the base path
CreateBackup(ctx context.Context, fpath string) error

CheckProvable(ctx context.Context, pp abi.RegisteredPoStProof, sectors []abi.SectorID) (map[abi.SectorNumber]string, error) //perm:admin
CheckProvable(ctx context.Context, pp abi.RegisteredPoStProof, sectors []storage.SectorRef, expensive bool) (map[abi.SectorNumber]string, error) //perm:admin
}

type SealRes struct {
@@ -197,3 +213,27 @@ func (st *SealSeed) Equals(ost *SealSeed) bool {
}

type SectorState string

type AddrUse int

const (
PreCommitAddr AddrUse = iota
CommitAddr
PoStAddr

TerminateSectorsAddr
)

type AddressConfig struct {
PreCommitControl []address.Address
CommitControl []address.Address
TerminateControl []address.Address
}

// PendingDealInfo has info about pending deals and when they are due to be
// published
type PendingDealInfo struct {
Deals []market.ClientDealProposal
PublishPeriodStart time.Time
PublishPeriod time.Duration
}
Loading