massnetorg / MassNet-miner

MassNet-miner is a Golang implementation of MassNet full-node miner.
MIT License
42 stars 19 forks source link

mining too far in the future #12

Closed luozhanxin closed 3 years ago

luozhanxin commented 3 years ago

how to solve mining too far in the future?

time="2021-07-21T06:08:28+08:00" level=debug msg="mining too far in the future" file=strategy.go func="miner.(*PoCMiner).syncGetBestProof" line=125 nowSlot=542272969 tid=618 workSlot=542272971

luozhanxin commented 3 years ago

time="2021-07-22T20:44:38+08:00" level=error msg="fail to solve block" err="can not find valid proof" f7="{miner.go,miner.(PoCMiner).generateBlocks,166}" f8="{asm_amd64.s,runtime.goexit,1374}" tid=666 time="2021-07-22T20:44:39+08:00" level=info msg="Step 1: request for poc & body template" file=miner.go func="miner.(PoCMiner).solveBlock" line=222 tid=666 time="2021-07-22T20:44:39+08:00" level=info msg="Step 2: wait for poc template" file=miner.go func="miner.(PoCMiner).solveBlock" line=229 tid=666 time="2021-07-22T20:44:39+08:00" level=debug msg="Considering transactions in mempool for inclusion to new block" file=template.go func=blockchain.newBlockTemplate line=764 tid=17799 tx count=4 time="2021-07-22T20:44:39+08:00" level=info msg="Step 3: check for double mining" file=miner.go func="miner.(PoCMiner).solveBlock" line=237 tid=666 time="2021-07-22T20:44:39+08:00" level=info msg="Step 4: get best proof" challenge=e30b214823b676ddbbe53af706fa5734a61ae51cc8ec52275186435f12b8852d file=miner.go func="miner.(PoCMiner).solveBlock" height=1414864 line=245 previous=0ee70787a88530a2af77009180752f1bcc03ea80b3868c9380e37b64bd6f2993 tid=666 timestamp=1626957879 time="2021-07-22T20:44:39+08:00" level=info msg=buildBlockTemplateBindingRoot bindingIn=0 bindingOut=36 file=process.go func="blockchain.(Blockchain).buildBlockTemplateBindingRoot" line=384 newBindingRoot=0x723b44c57031d8b31e668eefad3789b58e831be95b4f04b63bd3b703c26ed5c6 newHeight=1414864 parent=0ee70787a88530a2af77009180752f1bcc03ea80b3868c9380e37b64bd6f2993 parentBindingRoot=0x604ea3c72958d2cab3bdcceec02b73f939b79411021e6cc750ac01a47fff8640 tid=98 totalTxs=5 time="2021-07-22T20:44:39+08:00" level=debug msg="Created new block template" block size=6478 file=template.go func=blockchain.newBlockTemplate line=1040 signature operations cost=4 target difficulty=0000000000000000000000000000000000000000000000000000000000000000 tid=17799 total fee="0.0013977 MASS" tx count=5 time="2021-07-22T20:44:39+08:00" level=info msg="find qualities for next block, waiting for proper slot" binding_count=1 file=strategy.go func="miner.(PoCMiner).syncGetBestProof" height=1414864 line=108 query_time=0.365109883 tid=666 total_count=26 valid_count=26 time="2021-07-22T20:44:39+08:00" level=debug msg="ticker received" file=strategy.go func="miner.(PoCMiner).syncGetBestProof" line=121 tid=666 time="2021-07-22T20:44:40+08:00" level=debug msg="fetcher receive mine block" file=block_fetcher.go func="netsync.(blockFetcher).add" height=1414864 line=66 tid=196 time="2021-07-22T20:44:40+08:00" level=debug msg="accepted block" elapsed=40.260609ms file=process.go flags=0 func="blockchain.(Blockchain).processBlock" hash=92673441373e08d9690a39a5a462d3ecf4e573221fc08c9713ed92b6023c0abe height=1414864 line=208 tid=98 tx_count=5 time="2021-07-22T20:44:40+08:00" level=info msg="update miner stale slot" file=miner.go func=miner.runStaleMonitor.func2 height=1414864 line=419 staleSlot=542319292 tid=17801 workSlot=542319295 time="2021-07-22T20:44:40+08:00" level=debug msg="fetcher receive mine block" file=block_fetcher.go func="netsync.(blockFetcher).add" height=1414864 line=66 tid=196 time="2021-07-22T20:44:40+08:00" level=debug msg="ticker received" file=strategy.go func="miner.(PoCMiner).syncGetBestProof" line=121 tid=666 time="2021-07-22T20:44:40+08:00" level=debug msg="mining too far in the future" file=strategy.go func="miner.(PoCMiner).syncGetBestProof" line=125 nowSlot=542319293 tid=666 workSlot=542319295 time="2021-07-22T20:44:41+08:00" level=debug msg="ticker received" file=strategy.go func="miner.(PoCMiner).syncGetBestProof" line=121 tid=666 time="2021-07-22T20:44:41+08:00" level=debug msg="mining too far in the future" file=strategy.go func="miner.(PoCMiner).syncGetBestProof" line=125 nowSlot=542319293 tid=666 workSlot=542319295 time="2021-07-22T20:44:42+08:00" level=debug msg="ticker received" file=strategy.go func="miner.(PoCMiner).syncGetBestProof" line=121 tid=666 time="2021-07-22T20:44:42+08:00" level=info msg="give up current mining block due to better received block" file=strategy.go func="miner.(PoCMiner).syncGetBestProof" height=1414864 line=138 previous=0ee70787a88530a2af77009180752f1bcc03ea80b3868c9380e37b64bd6f2993 tid=666 time="2021-07-22T20:44:42+08:00" level=info msg="quit solve block" err="quit solve block" file=miner.go func="miner.(PoCMiner).solveBlock.func1" line=213 tid=666

gannicusleon commented 3 years ago

i have same error, how to solve it?