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

feat: implement nv22 #6265

Merged
merged 49 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
f59c2a1
feat(api): Add block param to eth_estimateGas
simlecode Dec 25, 2023
dfe8ff5
chore: use peer.String()
simlecode Dec 25, 2023
59970e9
fix: networking: avoid dialing when trying to handshake peers
simlecode Dec 26, 2023
dbf20e0
feat: implement frc-0051
simlecode Dec 28, 2023
f6e69af
chore: fix lint
simlecode Jan 29, 2024
a71bab5
Merge pull request #6266 from filecoin-project/feat/frc-51
simlecode Jan 30, 2024
7f405b9
chore: udpate ffi
simlecode Jan 30, 2024
ae2893a
feat: Add nv22 skeleton
simlecode Jan 30, 2024
9ac7572
fix: fix test
simlecode Jan 30, 2024
2522f86
chore: fix lint
simlecode Jan 30, 2024
0cbe83d
Merge pull request #6268 from filecoin-project/feat/builtin-actor
LinZexiao Jan 30, 2024
326a7ec
feat: implement fip 0063
simlecode Jan 30, 2024
9eb850e
chore: update deps
simlecode Jan 30, 2024
cfc4cab
Merge pull request #6269 from filecoin-project/feat/fip-0063
LinZexiao Jan 31, 2024
abf13fb
feat: drand: refactor round verification
simlecode Jan 31, 2024
870614d
Merge pull request #6270 from filecoin-project/feat/prefactor-drand
LinZexiao Jan 31, 2024
d8744e4
feat: refactor market deal state
simlecode Jan 31, 2024
d7a62be
chore: make cborgen
simlecode Jan 31, 2024
cdb4f8c
chore: fix lint
simlecode Jan 31, 2024
7a17d47
Merge pull request #6271 from filecoin-project/feat/refactor-market-s…
LinZexiao Jan 31, 2024
b544033
fix: generate pre sector for 2k
simlecode Feb 1, 2024
7dbb958
Merge pull request #6272 from filecoin-project/fix/2k
LinZexiao Feb 1, 2024
d6a41a9
chore: deps: update to go-multiaddr v0.12.2
simlecode Feb 21, 2024
3a613f9
chore: update ffi
simlecode Feb 21, 2024
8d080b6
feat: fvm: update the FVM to v4.1
simlecode Feb 21, 2024
b8b5619
chore: Set upgrade heights and change codename
simlecode Feb 21, 2024
03da3e6
chore: update go-state-types
simlecode Feb 21, 2024
68c48f7
chore: Update to v13.0.0-rc.2 bundle
simlecode Feb 21, 2024
37e79b2
chore: Update epoch heights for nv22
simlecode Feb 23, 2024
468d374
chore: add forest bootstrap nodes
simlecode Feb 23, 2024
03fc62b
chore: Remove PL operated bootstrap nodes
simlecode Feb 23, 2024
9bfab02
feat: api: new verified registry methods to get all allocations and c…
simlecode Feb 23, 2024
f7f0128
feat: api: improve the correctness of Eth's trace_block
simlecode Feb 28, 2024
4c2a352
fix: Remove singapore drand testnet host from config
simlecode Feb 28, 2024
4146216
chore: fix lint
simlecode Feb 28, 2024
7a6b975
Merge pull request #6276 from filecoin-project/chore/transport
LinZexiao Feb 28, 2024
f133400
chore: deps: update to go-state-types v13.0.0-rc.1
simlecode Feb 29, 2024
2035014
feat: drand quicknet: allow scheduling drand quicknet upgrade before …
simlecode Feb 29, 2024
332dfe8
Merge pull request #6277 from filecoin-project/chore/dep-test
LinZexiao Mar 4, 2024
6d3dc95
chore: update go-state-types to v0.13.0-rc.2
simlecode Mar 5, 2024
9bb1c1d
chore: update builtin actor
simlecode Mar 6, 2024
e81b086
chore: set UpgradeDragonHeight for calibnet
simlecode Mar 6, 2024
9ad1edd
Merge pull request #6278 from filecoin-project/chore/dep-gst
LinZexiao Mar 6, 2024
4cac810
feat: events: Add APIs to consume smart contract and built-in actor e…
simlecode Mar 6, 2024
fb7724b
chore: make compatible-all
simlecode Mar 6, 2024
99532c5
chore: fix test
simlecode Mar 6, 2024
9c713ca
Merge pull request #6279 from filecoin-project/feat/builtin-actor-events
LinZexiao Mar 7, 2024
ffcf2d6
fix: beacon: validate drand change at nv16 correctly
simlecode Mar 7, 2024
838a5bf
Merge pull request #6280 from filecoin-project/fix/drand-skyr
simlecode Mar 7, 2024
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
6 changes: 6 additions & 0 deletions app/node/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/libp2p/go-libp2p"
"github.com/pkg/errors"

"github.com/filecoin-project/venus/app/submodule/actorevent"
"github.com/filecoin-project/venus/app/submodule/blockstore"
"github.com/filecoin-project/venus/app/submodule/chain"
"github.com/filecoin-project/venus/app/submodule/common"
Expand Down Expand Up @@ -171,6 +172,10 @@ func (b *Builder) build(ctx context.Context) (*Node, error) {
return nil, err
}

if nd.actorEvent, err = actorevent.NewActorEventSubModule(ctx, b.repo.Config(), nd.chain, nd.eth); err != nil {
return nil, err
}

apiBuilder := NewBuilder()
apiBuilder.NameSpace("Filecoin")

Expand All @@ -188,6 +193,7 @@ func (b *Builder) build(ctx context.Context) (*Node, error) {
nd.market,
nd.common,
nd.eth,
nd.actorEvent,
)

if err != nil {
Expand Down
4 changes: 3 additions & 1 deletion app/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/awnumar/memguard"
"github.com/etherlabsio/healthcheck/v2"
"github.com/filecoin-project/go-jsonrpc"
"github.com/filecoin-project/venus/app/submodule/actorevent"
"github.com/filecoin-project/venus/app/submodule/blockstore"
chain2 "github.com/filecoin-project/venus/app/submodule/chain"
"github.com/filecoin-project/venus/app/submodule/common"
Expand Down Expand Up @@ -100,7 +101,8 @@ type Node struct {

common *common.CommonModule

eth *eth.EthSubModule
eth *eth.EthSubModule
actorEvent *actorevent.ActorEventSubModule

//
// Jsonrpc
Expand Down
4 changes: 3 additions & 1 deletion app/node/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"reflect"

"github.com/filecoin-project/go-jsonrpc"
"github.com/filecoin-project/venus/app/submodule/actorevent"
"github.com/filecoin-project/venus/app/submodule/eth"
v0api "github.com/filecoin-project/venus/venus-shared/api/chain/v0"
v1api "github.com/filecoin-project/venus/venus-shared/api/chain/v1"
Expand Down Expand Up @@ -40,14 +41,15 @@ func (builder *RPCBuilder) AddServices(services ...RPCService) error {
}

var ethSubModuleTyp = reflect.TypeOf(&eth.EthSubModule{}).Elem()
var actorEventSubModuleTyp = reflect.TypeOf(&actorevent.ActorEventSubModule{}).Elem()

func skipV0API(in interface{}) bool {
inT := reflect.TypeOf(in)
if inT.Kind() == reflect.Pointer {
inT = inT.Elem()
}

return inT.AssignableTo(ethSubModuleTyp)
return inT.AssignableTo(ethSubModuleTyp) || inT.AssignableTo(actorEventSubModuleTyp)
}

func (builder *RPCBuilder) AddV0API(service RPCService) error {
Expand Down
Loading
Loading