Replay 测试
cn·@oflyhigh·
0.000 HBDReplay 测试
朋友的节点无意中触发了Replay,并且不显示Replay进度,让他极为闹心。  (图源 :[pexels.com](https://www.pexels.com/)) 我看STEEM源码中的一处注释,得出结论,Replay是可以暂停的,暂停后重启steemd(不加 `--replay-blockchain`)会自动从之前的位置继续Replay。 我的依据就是代码中的这段注释: > 尤其是这句: >If the index file head is in the log, but not up to date, replay from index head. 结果***朋友按我的馊主意测试后,程序又从头Replay了,害他浪费了几个小时的时间。*** 为了证实replay中途停掉再启动程序后是否会从停掉的位置继续Replay,我做了一些测试。 删除block_log.index 以及shared_memory.bin,只保留block_log,重启steemd: > 以上操作会自动触发Replay,不过并不显示进度。 等一段时间后,关掉steemd,再重新启动,不加(--replay-blockchain)参数: > 发现并没有如我所预料的那样,从停掉的位置开始。 重新试一遍上述两步操作,结果没有什么区别: > > 再测试一下加(--replay-blockchain)参数,然后停掉重启,结果出现下边第二幅图中显示的错误: > > 经过无数次的测试,后来有一次,貌似Replay从中途继续的,不过我没注意观察,随手关掉了,哭。 看来朋友的结论还是对的,***只要需要replay,别报期望中途停止恢复啥的,直接加 `--replay-blockchain`参数,然后耐心等待好了***。 # 相关链接 * [到底什么是重播(Replay)?我的理解](https://steemit.com/cn/@oflyhigh/replay) ---- <center><strong>Vote For Me As Witness</strong> https://steemit.com/~witnesses type in **`oflyhigh`** and click ***`VOTE`*** [](https://steemit.com/~witnesses) [Vote @oflyhigh via Steemconnect](https://steemconnect.com/sign/account-witness-vote?witness=oflyhigh&approve=1) <strong>Thank you!</strong></center>
👍 liangfengyouren, hepeng.chn, bambugrove, astros, money-way, blues-wclouds, cryptouno, eval, julian2013, archisteem, evelaurie, yalehazlitt, eltonwright, zorapolly, yettawild, bobarchibald, annasandy, sskiller, auntigormint, ms8988, ikonik, lemminon, kimzwarch, holmesian, santosneto, exec, accelerator, xiaohui, somebody, redes, wongshiying, janiceting, chinadaily, blackbunny, oflyhigh, davidke20, alexis555, aellly, hmayak, a-secondchance, xiaokongcom, midnightoil, ethansteem, pataty69, helene, micaelacf, bhaski, yulan, laoyao, devilwsy, lingfei, andrewma, deanliu, lalala, yyyy, rea, jamzmie, map10k, technologynepal, rycharde, astromaniac, hamsa.quality, wylo, htliao, moneybaby, moneybabe, kymio, phatima, bukiland, gamezine, barcenas, hyborian-strain, steemprotect, canbethisone, thecryptodrive, passion-fruit, busy.pay, fortune-master, rivalhw, cn-reader, floatinglin, cryptohustler, aabb, mrliga, windowglass, christianity101, abcbullion, huatanzhang, laissez-faire, bboyady, xiaoshancun, raili, abetterworld, weavingwords, heyeshuang, sanzo, khalilad, winniex, chenlocus, fastiduos, rebecca80, silentlucidity53, kingofdew, sweethoney, stakuza, razor80, chann, coindzs, ethanlee, cryptoknight27, khayziljoy, alijewel, bearpaw, chaerin, lkvictor2005, freedom-fighter, raku, speeding, blockchainbilly, jkkim, leduc1984, jianghao, teachblogger, dgorbunov, fredo77200, agoha, resteeming, austinsandersco, walkinharmony, davaowhenyo, allenshayzar, frankintaiwan, ravenousappetite, nitro.live, ebejammin, asterix87, that1consultant, lancy, vfxness, historylover, btccurrency1, fanso, jiangchen, ooairbb, zmx, bxt, lovelemon, slowwalker, gregoryhedrich, steemgreen, da-dawn, ace108, travelgirl, everrich, victory622, jincheng, sherry0926, xiaoyouzhijia, cecilian, adm, idx, abit,