blockchain icon indicating copy to clipboard operation
blockchain copied to clipboard

when i have some other nodes, it can't sync the block

Open npm-ued opened this issue 7 years ago • 4 comments

as the title. when i have 2 node http://127.0.0.1:5000 chain: { "chain": [ { "index": 1, "previous_hash": "1", "proof": 100, "timestamp": 1520730726.336663, "transactions": [] }, { "index": 2, "previous_hash": "68017de6ce598dc398c5f0a4798dbcb89131f260347df5faed3e8b7afccdace1", "proof": 161458, "timestamp": 1520730744.8993568, "transactions": [ { "amount": 1, "recipient": "86d8dd6c88b740e4854c777a4a1181b3", "sender": "0" } ] } ], "length": 2 } http://127.0.0.1:5001 chain: { "chain": [ { "index": 1, "previous_hash": "1", "proof": 100, "timestamp": 1520730719.285117, "transactions": [] }, { "index": 2, "previous_hash": "7c644d59e6db9aa7fdfd3017695e9623dd72eaec364b2c6868a8b95861b13641", "proof": 90033, "timestamp": 1520730754.616982, "transactions": [ { "amount": 1, "recipient": "cff17fd013b24dc780c576b741dc3fdb", "sender": "0" } ] }, { "index": 3, "previous_hash": "13cca2f4b1c7481438e96ef531b917764a680e5e73701fe9eb34afec724a0a3d", "proof": 23126, "timestamp": 1520730788.67462, "transactions": [ { "amount": 1, "recipient": "cff17fd013b24dc780c576b741dc3fdb", "sender": "0" } ] } ], "length": 3 } It can't sync chain data.

npm-ued avatar Mar 11 '18 06:03 npm-ued

I'm having the same issue. Can someone please update?

JimiPedros avatar Apr 06 '18 04:04 JimiPedros

How can I get to nodes to communicate on the same chain

JimiPedros avatar Apr 06 '18 09:04 JimiPedros

change if not self.valid_proof(last_block['proof'], block['proof'], last_block['previous_hash']) to if not self.valid_proof(last_block['proof'], block['proof'], block['previous_hash']), try again

LiuFangLu avatar Apr 17 '18 09:04 LiuFangLu

Why was this reverted? And why was that a fix?

ehammo avatar Nov 01 '19 23:11 ehammo