Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: BTS 0.8.1 is forking  (Read 1595 times)

0 Members and 1 Guest are viewing this topic.

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BTS: bitcube
  • Witness: bitcube
BTS 0.8.1 is forking
« on: March 25, 2015, 09:48:00 AM »

About 25% delegates are affected by it.  My delegate went into a folked chain.  Can the devs look into it?
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
Re: BTS 0.8.1 is forking
« Reply #1 on: March 25, 2015, 10:26:02 AM »
I am in the main fork (77.69% participation) try to remove the chain directory (~/.BitShares/chain/) and change the checkpoints.json in this way (added a recent block in main chain) and restart the client:

Code: [Select]
[[
    2117977,
    "1f9cdf643f1e21af79a18fe35751cd1593252014"
  ],[
    2104000,
    "147f68b04701f176cab47a512430c9a82c78e217"
  ],[
    2071001,
    "58847f93f0d1846cb9250d7ba342bebda6e698e4"
  ],[
    991701,
    "2e48f0a16d2107b9ab3d1c87e803ee70d3c91ce0"
  ],[
    640001,
    "11c748cdbfc445396deb6d24908521701aaa80aa"
  ],[
    820201,
    "904278b4bd585e3055c092aada1e030fbdf69a0e"
  ],[
    613201,
    "3317ea0a272976a10ef6593e840f9ff2032affad"
  ],[
    1315315,
    "baede744122d4b8d296ab3497bf5c849d1131466"
  ],[
    871001,
    "137ee1e9171a7ed1fe9cc58536d8e20749c3f199"
  ],[
    578901,
    "add6131c7bc6f1c9470de209b0e9c257d664f1c9"
  ],[
    494001,
    "59836f51f13e07be1de734a02360742c7b5f0dd6"
  ],[
    451501,
    "42e519db48f09570fcc02f38288648a92789dcb3"
  ],[
    554801,
    "4a992cc282a0024d393c6389cf84cbb8df1fc839"
  ],[
    408751,
    "12481e818abe9bc86069e45586df11d2cff7dbb8"
  ],[
    357001,
    "d240848ca9bf4be30204eded02fb35ce2e215d41"
  ],[
    340001,
    "d3858436100abe3ad7ee9f026e5f7f4781732e06"
  ],[
    1772201,
    "5832516564d86e86edbbb501cabec98c77504307"
  ],[
    316002,
    "206b7e6574019f4352515bd3d96162fb40a1b18a"
  ],[
    274001,
    "f46c109cfb1bac323122ae59b08edc23328d880c"
  ],[
    1575501,
    "52c5e5764fba4c876cde8c80e598c89ee5c35d9f"
  ],[
    1,
    "8abcfb93c52f999e3ef5288c4f837f4f15af5521"
  ]
]
wallet_account_set_approval spartako

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12058
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BTS 0.8.1 is forking
« Reply #2 on: March 25, 2015, 10:29:13 AM »
confirming main chain
Code: [Select]
blockchain_get_block 2117977
{
  "previous": "ade121bc11a8a05d75e1089f5185b6a45905ac91",
  "block_num": 2117977,
  "timestamp": "2015-03-25T10:24:20",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "ce025dbda2034e7de6d03664b8e80eadb057dc42",
  "previous_secret": "3ab66005d6814ac3505c81045eba7e68bbeeb639",
  "delegate_signature": "20248cc81adc718234f6c18584dd2a4e85e5b2a31c8b9b0cd5a096933a07c3cb914abd9d4acedf77b51c49505bf1d0e4b753d114f576b9a8c070a842d5fc1b29ae",
  "user_transaction_ids": [],
  "id": "1f9cdf643f1e21af79a18fe35751cd1593252014",
  "block_size": 166,
  "latency": 0,
  "signee_shares_issued": 150000,
  "signee_fees_collected": 13860,
  "signee_fees_destroyed": 448141,
  "random_seed": "c8f24a8127e2f8d782830623f27c6e84a213566b",
  "processing_time": 91567
}
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline arubi

  • Sr. Member
  • ****
  • Posts: 209
    • View Profile
Re: BTS 0.8.1 is forking
« Reply #3 on: March 25, 2015, 11:59:30 AM »
Why is this a problem?
Isn't this the perfect time to hire some delegates?  :D

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BTS: bitcube
  • Witness: bitcube
Re: BTS 0.8.1 is forking
« Reply #4 on: March 25, 2015, 01:07:45 PM »
confirming main chain
Code: [Select]
blockchain_get_block 2117977
{
  "previous": "ade121bc11a8a05d75e1089f5185b6a45905ac91",
  "block_num": 2117977,
  "timestamp": "2015-03-25T10:24:20",
  "transaction_digest": "c8cf12fe3180ed901a58a0697a522f1217de72d04529bd255627a4ad6164f0f0",
  "next_secret_hash": "ce025dbda2034e7de6d03664b8e80eadb057dc42",
  "previous_secret": "3ab66005d6814ac3505c81045eba7e68bbeeb639",
  "delegate_signature": "20248cc81adc718234f6c18584dd2a4e85e5b2a31c8b9b0cd5a096933a07c3cb914abd9d4acedf77b51c49505bf1d0e4b753d114f576b9a8c070a842d5fc1b29ae",
  "user_transaction_ids": [],
  "id": "1f9cdf643f1e21af79a18fe35751cd1593252014",
  "block_size": 166,
  "latency": 0,
  "signee_shares_issued": 150000,
  "signee_fees_collected": 13860,
  "signee_fees_destroyed": 448141,
  "random_seed": "c8f24a8127e2f8d782830623f27c6e84a213566b",
  "processing_time": 91567
}

Is there a simple and quick way to bring a delegate on a forked chain back to the main (besides removing the chain folder and resyn)?
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12058
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BTS 0.8.1 is forking
« Reply #5 on: March 25, 2015, 01:12:28 PM »
maybe with the "checkpoints.json" file (see above) .. can't tell ..

BM stated somewhere that he had to reset the chain-folder
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1337
    • View Profile
Re: BTS 0.8.1 is forking
« Reply #6 on: March 25, 2015, 05:47:54 PM »
delete your data folder keep your wallet and redownload chain, its faster now... BM also had to do this, I did and now I think im on the right chain.

Hired by blockchain | Developer
delegate: dev.sidhujag

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BTS: bitcube
  • Witness: bitcube
Re: BTS 0.8.1 is forking
« Reply #7 on: March 26, 2015, 03:38:26 AM »
delete your data folder keep your wallet and redownload chain, its faster now... BM also had to do this, I did and now I think im on the right chain.

I removed the chain and redownloaded.  After a long while, it resynced and was back to the main chain.  But it just went into the wrong chain yet again.  How to avoid getting into a fork?  How to recover from a fork quickly?
« Last Edit: March 26, 2015, 04:20:31 AM by cube »
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline btswildpig

  • Hero Member
  • *****
  • Posts: 1406
    • View Profile
Re: BTS 0.8.1 is forking
« Reply #8 on: March 26, 2015, 04:43:12 AM »
delete your data folder keep your wallet and redownload chain, its faster now... BM also had to do this, I did and now I think im on the right chain.

I removed the chain and redownloaded.  After a long while, it resynced and was back to the main chain.  But it just went into the wrong chain yet again.  How to avoid getting into a fork?  How to recover from a fork quickly?

had you deleted the "peers.leveldb" folder when you removed the chain ?
if not ,try it
这个是私人账号,表达的一切言论均不代表任何团队和任何人。This is my personal account , anything I said with this account will be my opinion alone and has nothing to do with any group.

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BTS: bitcube
  • Witness: bitcube
Re: BTS 0.8.1 is forking
« Reply #9 on: March 26, 2015, 05:45:55 AM »
delete your data folder keep your wallet and redownload chain, its faster now... BM also had to do this, I did and now I think im on the right chain.

I removed the chain and redownloaded.  After a long while, it resynced and was back to the main chain.  But it just went into the wrong chain yet again.  How to avoid getting into a fork?  How to recover from a fork quickly?

had you deleted the "peers.leveldb" folder when you removed the chain ?
if not ,try it

Yes, I did.  And it did not really help.
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline dannotestein

Re: BTS 0.8.1 is forking
« Reply #10 on: March 26, 2015, 06:02:36 AM »
delete your data folder keep your wallet and redownload chain, its faster now... BM also had to do this, I did and now I think im on the right chain.

I removed the chain and redownloaded.  After a long while, it resynced and was back to the main chain.  But it just went into the wrong chain yet again.  How to avoid getting into a fork?  How to recover from a fork quickly?

had you deleted the "peers.leveldb" folder when you removed the chain ?
if not ,try it

Yes, I did.  And it did not really help.
If you're on version 8.1 and you re-synched, we don't really expect it to happen again, so we need to see your logs. Can you zip up your p2p.log file and post it somewhere for us to look at?
http://blocktrades.us Fast/Safe/High-Liquidity Crypto Coin Converter

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BTS: bitcube
  • Witness: bitcube
Re: BTS 0.8.1 is forking
« Reply #11 on: March 26, 2015, 06:18:12 AM »
delete your data folder keep your wallet and redownload chain, its faster now... BM also had to do this, I did and now I think im on the right chain.

I removed the chain and redownloaded.  After a long while, it resynced and was back to the main chain.  But it just went into the wrong chain yet again.  How to avoid getting into a fork?  How to recover from a fork quickly?

had you deleted the "peers.leveldb" folder when you removed the chain ?
if not ,try it

Yes, I did.  And it did not really help.
If you're on version 8.1 and you re-synched, we don't really expect it to happen again, so we need to see your logs. Can you zip up your p2p.log file and post it somewhere for us to look at?

I removed the whole .BitShares folder, except wallets subfolder, for the current resync.  If it happened again, I would send the log.
« Last Edit: March 26, 2015, 06:20:57 AM by cube »
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Online svk

Re: BTS 0.8.1 is forking
« Reply #12 on: March 26, 2015, 07:08:44 AM »
Just woke up to find that my delegate had lost all connections once again!
Worker: dev.bitsharesblocks

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12058
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BTS 0.8.1 is forking
« Reply #13 on: March 26, 2015, 07:21:40 AM »
Just woke up to find that my delegate had lost all connections once again!
Same here .. almost ... 2 out of 3 machines had 0 connections ... luckly my backup delegate is still 'on-track' so I switched over to that one to produce blocks ..
When I restarted the other clients, they initiated a resync automatically?! never saw that happen before
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Online svk

Re: BTS 0.8.1 is forking
« Reply #14 on: March 26, 2015, 07:39:59 AM »
Just woke up to find that my delegate had lost all connections once again!
Same here .. almost ... 2 out of 3 machines had 0 connections ... luckly my backup delegate is still 'on-track' so I switched over to that one to produce blocks ..
When I restarted the other clients, they initiated a resync automatically?! never saw that happen before

Yea that's happened twice to me as well, the automatic clearing of the blockchain and resyncing. It's very annoying cause it takes most of a day to get synced back up..
Worker: dev.bitsharesblocks

 

Google+