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

Chore/merge v1.10.0 #5802

Merged
merged 63 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
1d237e0
feat: EthAPI: Add EthAddressToFilecoinAddress
simlecode Feb 20, 2023
c28b98e
fix: eth: correctly decode EthGetStorageAt output
simlecode Feb 20, 2023
19ef5b4
feat: eth: parse revert data
simlecode Feb 20, 2023
fecb291
feat: eth: return revert data on failed gas estimation
simlecode Feb 20, 2023
8e0343b
fix: pack: support network name overrides in bundle git tags
simlecode Feb 20, 2023
43e39ed
chore: deps: bump go-libipfs to v0.4.1
simlecode Feb 20, 2023
7fc452c
fix: eth: return the correct nonce from EthGetTransactionCount
simlecode Feb 20, 2023
e5df5f4
chore: avoid actor not found
simlecode Feb 20, 2023
ac36773
fix: eth: cleanup error cases
simlecode Feb 20, 2023
9e05e62
fix: update nv10 per migration
simlecode Feb 20, 2023
d9a459e
Merge pull request #5736 from filecoin-project/feat/add_boostrap_peer…
simlecode Feb 20, 2023
1be7d78
chore: use silent writer
simlecode Feb 20, 2023
6e1dea2
Merge pull request #5738 from filecoin-project/feat/transport-nv18-rc2
diwufeiwen Feb 20, 2023
ebb22d5
chore: bump version to v1.10.0-rc3
simlecode Feb 20, 2023
dfe2891
chore: upgrade go-jsonrpc
simlecode Feb 21, 2023
1976541
Merge pull request #5739 from filecoin-project/release/v1.10.0-rc3
diwufeiwen Feb 21, 2023
f793676
Merge pull request #5741 from filecoin-project/chore/upgrade-jsonrpc
diwufeiwen Feb 21, 2023
089881e
fix: fix store receipts
simlecode Feb 22, 2023
a0d46f4
Merge pull request #5743 from filecoin-project/fix/store-receipt
diwufeiwen Feb 22, 2023
59c1619
chore: bump version to v1.10.0-rc4
simlecode Feb 22, 2023
ab353b5
Merge pull request #5744 from filecoin-project/release/v1.10.0-rc4
diwufeiwen Feb 22, 2023
8cfd0c7
fix: update persian height to 240
simlecode Feb 23, 2023
8eac497
Merge pull request #5750 from filecoin-project/fix/persian-height
diwufeiwen Feb 23, 2023
82ca715
Merge pull request #5773 from LinZexiao/master
simlecode Feb 27, 2023
9ff47bb
Merge pull request #5775 from filecoin-project/chore/pick-5773
LinZexiao Feb 27, 2023
5c86c21
feat: EthAPI: Add FilecoinAddressToEthAddress
simlecode Feb 27, 2023
1130741
fix: returns the cid of the found message
simlecode Feb 23, 2023
fadbb75
chore: wallet new command add delegated address
simlecode Feb 23, 2023
c513bb1
fix: gas used may empty
simlecode Feb 23, 2023
7ed4fc1
chore: add address to error message
simlecode Feb 23, 2023
629ff56
fix: add vmTracing for state replay
simlecode Feb 23, 2023
369306d
fix: missing part of tipsetkey
simlecode Feb 24, 2023
adadcdb
fix: no error returned
simlecode Feb 24, 2023
792aee4
Merge pull request #5772 from filecoin-project/feat/cattyping
diwufeiwen Feb 28, 2023
b713daf
chore: remove MessageWait from chain api
simlecode Feb 28, 2023
75eebc4
Merge pull request #5757 from filecoin-project/fix/state-replay
diwufeiwen Feb 28, 2023
14c64f9
feat: gas: overestimate around the Hygge upgrade
simlecode Feb 28, 2023
75d7f96
feat: refactor updatedealstatus api of market
diwufeiwen Feb 28, 2023
1f79117
fix: cli: send with InvokeEVM when sending from an eth account
simlecode Feb 28, 2023
2b6da17
chore: deps: update to go-state-types v0.10.0
simlecode Feb 28, 2023
0b5e5c4
fix: EthGetBalance: lookup balance at correct state
simlecode Feb 28, 2023
37c695a
Merge pull request #5778 from filecoin-project/feat/lt/refactor_updat…
diwufeiwen Feb 28, 2023
da69a36
chore: deps: update to FFI v1.20.0
simlecode Mar 1, 2023
5dd7922
chore: deps: update to actors v10.0.0
simlecode Mar 1, 2023
559997b
Merge pull request #5779 from filecoin-project/chore/transport-code
diwufeiwen Mar 1, 2023
0d33931
chore: update to lotus v1.20.0 & make compatible-all
simlecode Mar 1, 2023
8d4a482
chore: set mainnet upgrade epoch
simlecode Mar 1, 2023
607ed5a
chore: bump version to v1.10.0
simlecode Mar 2, 2023
ad9826e
Merge pull request #5781 from filecoin-project/chore/bump-v1.10.0
hunjixin Mar 2, 2023
e43b03f
fix: fix evm cmds
simlecode Mar 3, 2023
51e65a1
Merge pull request #5785 from filecoin-project/fix/evm-cmd
diwufeiwen Mar 6, 2023
5fb89cb
fix: block delay is 0
simlecode Mar 7, 2023
70bd910
feat: add miner mgr api
diwufeiwen Mar 7, 2023
7482d63
Merge pull request #5792 from filecoin-project/fix/block-delay
diwufeiwen Mar 7, 2023
60bd8a5
Merge pull request #5794 from filecoin-project/feat/lt/miner_mgr_api
simlecode Mar 7, 2023
71c2f5c
feat: add compute state api
simlecode Mar 7, 2023
5c37467
Merge pull request #5795 from filecoin-project/feat/compute-state
diwufeiwen Mar 7, 2023
f869f32
fix: EthAPI: Make newEthBlockFromFilecoinTipSet faster and correct
simlecode Mar 7, 2023
02b1874
Merge pull request #5798 from filecoin-project/fix/call-slow
diwufeiwen Mar 8, 2023
60ea9fc
chore: bump version to v1.10.1
simlecode Mar 8, 2023
6b723d8
Merge pull request #5799 from filecoin-project/chore/bump-v1.10.1
diwufeiwen Mar 8, 2023
caf1623
Merge branch 'master' into release/v1.10
simlecode Mar 8, 2023
797fa65
chore: fix lint
simlecode Mar 9, 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
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# venus changelog

## v1.10.1

* 修复 evm 命令部署合约失败 [[#5785](https://github.com/filecoin-project/venus/pull/5785)]
* 修复无法获取扇区的开始和过期时间 [[#5792](https://github.com/filecoin-project/venus/pull/5792)]
* market 增加 miner 管理接口 [[#5794](https://github.com/filecoin-project/venus/pull/5794)]
* 增加 StateCompute 接口 [[#5795](https://github.com/filecoin-project/venus/pull/5795)]
* 优化调用 newEthBlockFromFilecoinTipSet 函数的耗时 [[#5798](https://github.com/filecoin-project/venus/pull/5798)]

## v1.10.0

* 把实际的 vmTracing 传递给 VM [[#5757](https://github.com/filecoin-project/venus/pull/5757)]
* 增加接口 FilecoinAddressToEthAddress [[#5772]](https://github.com/filecoin-project/venus/pull/5772)
* 重构 market 接口 updatedealstatus [[#5778](https://github.com/filecoin-project/venus/pull/5778)]

## v1.10.0-rc4

* 修复保存 MessageReceipt 失败问题 [[#5743](https://github.com/filecoin-project/venus/pull/5743)]

## v1.10.0-rc3

* 调整 force 网络的 Hygge 升级高度
* 增加 bootstrap peers flag
* 增加 RPC接口:EthAddressToFilecoinAddress
* 升级 go-libipfs 版本到 v0.4.1
* 修复 EthGetTransactionCount 接口返回不正确的 nonce
* 调整预迁移开始高度和结束高度

## v1.10.0-rc1

这是 venus v1.10.0 版本(**强制性**)的第一个候选版本,此版本将提供 Hygge 网络升级,并引入 Filecoin 网络版本18。
Expand Down
35 changes: 19 additions & 16 deletions app/submodule/chain/chaininfo_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,19 +483,6 @@ func (cia *chainInfoAPI) StateVerifierStatus(ctx context.Context, addr address.A
return &dcap, nil
}

// MessageWait invokes the callback when a message with the given cid appears on chain.
// It will find the message in both the case that it is already on chain and
// the case that it appears in a newly mined block. An error is returned if one is
// encountered or if the context is canceled. Otherwise, it waits forever for the message
// to appear on chain.
func (cia *chainInfoAPI) MessageWait(ctx context.Context, msgCid cid.Cid, confidence, lookback abi.ChainEpoch) (*types.ChainMessage, error) {
chainMsg, err := cia.chain.MessageStore.LoadMessage(ctx, msgCid)
if err != nil {
return nil, err
}
return cia.chain.Waiter.Wait(ctx, chainMsg, uint64(confidence), lookback, true)
}

// StateSearchMsg searches for a message in the chain, and returns its receipt and the tipset where it was executed
func (cia *chainInfoAPI) StateSearchMsg(ctx context.Context, from types.TipSetKey, mCid cid.Cid, lookbackLimit abi.ChainEpoch, allowReplaced bool) (*types.MsgLookup, error) {
chainMsg, err := cia.chain.MessageStore.LoadMessage(ctx, mCid)
Expand All @@ -514,7 +501,7 @@ func (cia *chainInfoAPI) StateSearchMsg(ctx context.Context, from types.TipSetKe

if found {
return &types.MsgLookup{
Message: mCid,
Message: msgResult.Message.Cid(),
Receipt: *msgResult.Receipt,
TipSet: msgResult.TS.Key(),
Height: msgResult.TS.Height(),
Expand Down Expand Up @@ -579,7 +566,7 @@ func (cia *chainInfoAPI) StateWaitMsg(ctx context.Context, mCid cid.Cid, confide
}

return &types.MsgLookup{
Message: mCid,
Message: msgResult.Message.Cid(),
Receipt: *msgResult.Receipt,
ReturnDec: returndec,
TipSet: msgResult.TS.Key(),
Expand Down Expand Up @@ -786,7 +773,7 @@ func (cia *chainInfoAPI) StateCall(ctx context.Context, msg *types.Message, tsk
}
}

return res, nil
return res, err
}

// StateReplay replays a given message, assuming it was included in a block in the specified tipset.
Expand Down Expand Up @@ -882,3 +869,19 @@ func (cia *chainInfoAPI) ChainGetEvents(ctx context.Context, root cid.Cid) ([]ty

return ret, err
}

func (cia *chainInfoAPI) StateCompute(ctx context.Context, height abi.ChainEpoch, msgs []*types.Message, tsk types.TipSetKey) (*types.ComputeStateOutput, error) {
ts, err := cia.ChainGetTipSet(ctx, tsk)
if err != nil {
return nil, fmt.Errorf("loading tipset %s: %w", tsk, err)
}
st, t, err := statemanger.ComputeState(ctx, cia.chain.Stmgr, height, msgs, ts)
if err != nil {
return nil, err
}

return &types.ComputeStateOutput{
Root: st,
Trace: t,
}, nil
}
9 changes: 9 additions & 0 deletions app/submodule/eth/dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-jsonrpc"
v1 "github.com/filecoin-project/venus/venus-shared/api/chain/v1"
"github.com/filecoin-project/venus/venus-shared/types"
Expand All @@ -31,6 +32,14 @@ func (e *ethAPIDummy) EthAccounts(ctx context.Context) ([]types.EthAddress, erro
return nil, ErrModuleDisabled
}

func (e *ethAPIDummy) EthAddressToFilecoinAddress(ctx context.Context, ethAddress types.EthAddress) (address.Address, error) {
return address.Undef, ErrModuleDisabled
}

func (e *ethAPIDummy) FilecoinAddressToEthAddress(ctx context.Context, filecoinAddress address.Address) (types.EthAddress, error) {
return types.EthAddress{}, ErrModuleDisabled
}

func (e *ethAPIDummy) EthGetBlockTransactionCountByNumber(ctx context.Context, blkNum types.EthUint64) (types.EthUint64, error) {
return 0, ErrModuleDisabled
}
Expand Down
Loading