filecoin-project / lotus

Reference implementation of the Filecoin protocol, written in Go
https://lotus.filecoin.io/
Other
2.85k stars 1.27k forks source link

Block height fallback problem report #7599

Closed MatrixStorage closed 2 years ago

MatrixStorage commented 3 years ago

Checklist

Lotus component

Lotus Version

Daemon:  1.13.0+mainnet+git.7a55e8e89.dirty+api1.4.0
Local: lotus version 1.13.0+mainnet+git.7a55e8e89.dirty

Describe the Bug

Error:

failed to set up called handler: called check error (h: 1256818): failed to look up deal on chain: deal 2711201 not found - deal may not have completed sealing before deal proposal start epoch, or deal may have been slashed

Add a block height log to chain/events/events_called.go # 122 to print the block height to be applied: 2021-11-02T17:16:00.919Z INFO events events/events_called.go:123 启动events callled apply,from 1252231 to 1252232 2021-11-02T17:16:00.920Z INFO events events/events_called.go:161 启动events callled revert,from 1252232 to 1252231 2021-11-02T17:16:00.920Z INFO events events/events_called.go:123 启动events callled apply,from 1252231 to 1252232 2021-11-02T17:16:30.637Z INFO events events/events_called.go:123 启动events callled apply,from 1252232 to 1252233 2021-11-02T17:16:30.637Z INFO events events/events_called.go:161 启动events callled revert,from 1252233 to 1252232 2021-11-02T17:16:30.637Z INFO events events/events_called.go:123 启动events callled apply,from 1252232 to 1252233 2021-11-02T17:16:30.637Z INFO events events/events_called.go:161 启动events callled revert,from 1252233 to 1252232 2021-11-02T17:16:30.637Z INFO events events/events_called.go:123 启动events callled apply,from 1252232 to 1252233 2021-11-03T01:32:21.950Z INFO events events/events_called.go:123 启动events callled apply,from 1252231 to 1252232 2021-11-03T01:32:21.950Z INFO events events/events_called.go:161 启动events callled revert,from 1252232 to 1252231 2021-11-03T01:32:36.738Z INFO events events/events_called.go:123 启动events callled apply,from 1252231 to 1252232 2021-11-03T01:32:51.569Z INFO events events/events_called.go:123 启动events callled apply,from 1252232 to 1252233 2021-11-03T01:32:51.569Z INFO events events/events_called.go:161 启动events callled revert,from 1252233 to 1252232 2021-11-03T01:33:06.098Z INFO events events/events_called.go:123 启动events callled apply,from 1252232 to 1252233 2021-11-03T01:33:06.098Z INFO events events/events_called.go:161 启动events callled revert,from 1252233 to 1252232 2021-11-03T01:33:20.606Z INFO events events/events_called.go:123 启动events callled apply,from 1252232 to 1252233

This causes the block height at the current time to go back in time, and when Lotus Client checks whether the deal is consistent, it uses the block height of the past to query the deal, and the deal cannot be found

Logging Information

fil@CH-6:~$ lotus log list
splitstore
beacon
p2p-config
cli
autonat
retrieval-discovery
peerstore/ds
lock
dht.pb
tracing
data-transfer
chunk
boguskey
bs:sprmgr
fsm
partialfile
metrics
paramfetch
miner
data_transfer_network
repo
messagesigner
p2pnode
storageadapter
bs:peermgr
cmds
statemgr
addrutil
wallet
preseal
gs_request_executor
gs-asyncloader
statetree
messagepool
genesis
main
cmds/http
fsjournal
retrievaladapter
node
payment-channel-settler
sectoraccessor
swarm2
reuseport-transport
ffi-wrapper
disputer
nat
pathresolv
gs-traversal
stores
chainstore
providers
alerting
evtsm
mocknet
graphsync_allocator
auth
badger
stream-upgrader
graphsync_network
chain
bs:sess
gs-unverifiedbs
piecestore
rpc
build
storagemrkt
pubsub
dt-chanmon
actors
peermgr
ping
net/conngater
connmgr
modules
importmgr
vm
blockstore
blankhost
dht
dht/RtRefreshManager
net/identify
market_adapter
bitswap
storagemarket_network
fsutil
sectors
providerstates
client
ulimit
conngater
storagemarket_impl
tarutil
ipns
gs-notifications
builder
backupds
relay
filestore
gen
storedask
ffiwrapper
autorelay
tcp-tpt
routedhost
rpcenc
peerstore
types
cliutil
system
hello
watchdog
eventlog
blockservice
dt_graphsync
unixfs
sub
rand
fil-consensus
badgerbs
chainxchg
events
test-logger
discovery
dagstore/upgrader
dt-impl
retrieval_network
incrt
mplex
wallet-ledger
engine
drand
diversityFilter
quic-transport
markets
metrics-prometheus
dagstore
markets-rtvl
markets-rtvl-reval
amt
panic-reporter
storageminer
routing/record
fullnode
table
bitswap_network
paych
basichost
retrievalmarket_impl
retrieval-fsm
retrieval
graphsync
cborrrpc
advmgr

Repo Steps

  1. Run '...'
  2. Do '...'
  3. See error '...' ...
jennijuju commented 2 years ago

What do you mean by This causes the block height at the current time to go back in time, what’s this? the log shown doesn’t seems like to be in default lotus so gonna transfer this to discussion. Also, the error message seems clear to me on why the deal cannot be found.