Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: support to import deals using Boost #187

Merged
merged 38 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
efb889c
Merge pull request #183 from filswan/release-2.0.0
Normalnoise Sep 28, 2022
f306519
Update README-CN.md
Normalnoise Sep 28, 2022
068096b
replace go-swan-lib to local
Dec 13, 2022
444fa3c
New: support boost
Dec 14, 2022
7a74a66
Improve: build check
Dec 14, 2022
af3de74
New: add graphql client
Dec 16, 2022
8c0ec55
New: init and start boostd
Dec 19, 2022
4286b95
Improve: fix import cycle
Dec 19, 2022
fd71ce6
Improve: add ffi
Dec 19, 2022
ad6f2c8
Improve: replace ffi
Dec 26, 2022
4cedf76
Improve: delete ulimit
Dec 26, 2022
e827a78
Improve: modify init boostd
Dec 26, 2022
d1f40f3
Improve: modify init boostd
Dec 26, 2022
2efdcf8
Improve: modify start boostd
Dec 27, 2022
056d1af
Improve: modify start boostd
Dec 27, 2022
6a4a530
Improve: modify start boostd
Dec 27, 2022
e6d9305
Improve: modify start boostd
Dec 28, 2022
bc84987
Improve: add log
Dec 28, 2022
1dfeb3d
Improve: add log
Dec 28, 2022
5782c13
Improve: fix nil pointer
Dec 28, 2022
da67892
Improve: update boost token
Dec 28, 2022
da8e97e
Improve: get boost token
Dec 28, 2022
d09be0e
Improve: modify http server
Dec 28, 2022
d41b4a1
Improve: modify http server
Dec 28, 2022
b035791
Improve: modify deal status
Dec 29, 2022
c513f33
Improve: modify deal status
Dec 29, 2022
0587da4
Improve: modify deal status
Dec 29, 2022
e389d33
Improve: log format
Dec 29, 2022
366adfd
Improve: log format
Jan 2, 2023
1c669b9
Improve: log format
Jan 2, 2023
18e66bc
Improve: log format
Jan 2, 2023
6a42b64
Improve: delete log
Jan 3, 2023
b2b497e
Improve: update go-swan-lib
Jan 3, 2023
b2d9ec1
Merge pull request #5 from sonic-chain/boost
Normalnoise Jan 3, 2023
0a0c8f4
Merge branch 'releases' into main
sonic-chain Jan 4, 2023
baf4e8b
Update common.go
sonic-chain Jan 4, 2023
49bc51b
Update common.go
sonic-chain Jan 4, 2023
4a68abf
Update common.go
sonic-chain Jan 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve: modify deal status
  • Loading branch information
sonic committed Dec 29, 2022
commit c513f33a4088433c2bea6b7d8f98c4365d6bfdb0
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
go createHttpServer()
select {
case sig := <-sigCh:
logs.GetLogger().Warn("received shutdown", "signal: ", sig)
logs.GetLogger().Warn("received shutdown signal: ", sig)
service.StopBoost(service.BoostPid)
}
default:
Expand Down
1 change: 1 addition & 0 deletions service/lotus.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func (lotusService *LotusService) StartScan(swanClient *swan.SwanClient) {
}
dealStatus := hql.DealStatus(dealResp.Deal.Checkpoint, dealResp.Deal.Err)
onChainStatus := &dealStatus
logs.GetLogger().Infof("dealuuid: %s, dealStatus: %s, deal: %+v", dealResp.Deal.ID, dealStatus, dealResp.Deal)
UpdateSwanDealStatus(minerId, dealId, onChainStatus, dealResp.Deal.Message, deal, aria2AutoDeleteCarFile)
}
}
Expand Down