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

關於Explorer沒及時更新以及指令bdk explorer update的用途 #88

Open
bingyilin1472 opened this issue Oct 13, 2023 · 0 comments

Comments

@bingyilin1472
Copy link

What is the question?

我遇到Explorer的內容沒及時更新,bdk explorer up剛啟動時一般沒什麼問題,但大概一陣子後,譬如你chaincode添加,或者是開始匯入資料到鏈上,會發現在瀏覽器中閱覽explorer時候他的block內容沒有更新,瀏覽器重新整理也不會變,我處理的方法是採用:

  • 通常我發現,docker container restart explorerContainerID,這樣就重啟後,explorer內容就會成功為最新的狀態

  • 另外一個,我發現好像執行指令bdk explorer update似乎也能有類似上面效果,因為我擔心他實際上有很多不知道的操作,他速度上會需要等一陣子,可是若我只是單純用上面restart感受上比較快,還是說其實二者能成功的原因是因為是作了類似的事情
    (我看說明說這個是: 更新 Blockchain explorer 連接的 Peer,有點抽象,不太清楚他的資料是怎麼變動)

  • 最後,我為了讓他定期都可以更新,我用linux Crontab設置,每日八時去 bdk explorer update (畢竟每日重啟容器不太合理),不知道是否有沒有比較建議的方式,還是我這樣做其實就是此工具的正確作法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant