Author Topic: can't switch fork  (Read 1519 times)

0 Members and 1 Guest are viewing this topic.

Offline vikram

I will keep an eye on this; v0.4.27 will be released soon as an optional upgrade for delegates. Let me know if it still happens with that version.

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
and I think bts500 have met the same problem like me
Code: [Select]
        1275463
     cb81ab1c6ceeaf838b3fa36d1346bfe9d1b949c5                    eur.bts500              1      1807 2014-12-16T08:55:50         0      NO                  NO
     4c902a5aa3079d482c301324e35dc5d654cc760d                    dac.bts500             14     18303 2014-12-16T09:03:50         0      NO                  NO
     54351a02adef50d46bf4b666f2b8b062561ef3c6               skyscraperfarms              2      3448 2014-12-16T08:54:50         6      NO                  NO

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I fork again, at block  1275433
Code: [Select]
      1275433
     206fea9b0d5bff779e5b3f6d9752ffcb05fcabb0                    dele-puppy              1      1666 2014-12-16T08:49:30        10      NO                  NO
     795402638a260f0f368ba1e54ccf40feeaef2cb5          delegate.bitsuperlab             13     11364 2014-12-16T08:56:10         0     YES                 YES
     4900dbb4d287502131504a249d5930b7283519ba             delegate-watchman              1      1666 2014-12-16T08:49:40         0      NO                  NO

the main chain like this:
Code: [Select]
1275433 2014-12-16T08:49:20 riverhead-del-server-1          0       166     0       0.001991         05f75e7c35b9d132a3c01b26cd1b02b4e1fcbcb5
1275434 2014-12-16T08:49:30 dele-puppy                      1       1666    0       0.004118         927395dc9cf4aff5e1d451084c4b8ae62f67c758
MISSED  2014-12-16T08:49:40 delegate-watchman               N/A     N/A     N/A     N/A              N/A           
MISSED  2014-12-16T08:49:50 delegated-proof-of-steak        N/A     N/A     N/A     N/A              N/A           
1275435 2014-12-16T08:50:00 calabiyau                       3       5137    0       0.021909         3b0d71f06dc4729403646592d7453a9d24a6a440
1275436 2014-12-16T08:50:10 spartako2                       0       166     0       0.008294         1d7d1135177c661708366662622824baac3761cf
1275437 2014-12-16T08:50:20 google.helloworld               0       166     0       0.001986         272668752325b2f5d097375ab404e5a3a2e46487

I see the fork client's p2p.log, it receive block from dele-puppy, calabiyau, when begin switch fork, find a duplication transaction
Code: [Select]
2014-12-16T08:50:01 th_a:invoke handle_message      store_and_index ]            we already know about its previous: 206fea9b0d5bff779e5b3f6d9752ffcb05fcabb0     chai  n_database.cpp:562                                                                                                                                                   
  2014-12-16T08:50:01 th_a:invoke handle_message       switch_to_fork ] switch from fork 4900dbb4d287502131504a249d5930b7283519ba to c4e793fb107095c77ef5a355301912610a5  68b2c     chain_database.cpp:694
  2014-12-16T08:50:01 th_a:invoke handle_message     get_fork_history ]       chain_database.cpp:1135
  2014-12-16T08:50:01 th_a:invoke handle_message     get_fork_history ] return: ["c4e793fb107095c77ef5a355301912610a568b2c","206fea9b0d5bff779e5b3f6d9752ffcb05fcabb0","  567f451f589a0f21fcd6403b85420ac84c9ac2d2"]      chain_database.cpp:1156
  2014-12-16T08:50:01 th_a:invoke handle_message       switch_to_fork ]     pop 4900dbb4d287502131504a249d5930b7283519ba      chain_database.cpp:698
  2014-12-16T08:50:01 th_a:invoke handle_message       switch_to_fork ]     extend 206fea9b0d5bff779e5b3f6d9752ffcb05fcabb0     chain_database.cpp:703
  2014-12-16T08:50:01 th_a:invoke handle_message   apply_transactions ] Applying transactions from block: 1275434     chain_database.cpp:712
  2014-12-16T08:50:01 th_a:invoke handle_message         extend_chain ] error applying block: 30007 duplicate_transaction: duplicate transaction
 
      {"trx_id":"642880c1c5cde03c8578feb7fc3b437e93bf6eb0"}
      th_a  transaction_evaluation_state.cpp:208 evaluate

from the main fork, I know this transaction is at block 1275434 from dele-puppy
Code: [Select]
blockchain_get_transaction  642880c1c5cde03c8578feb7fc3b437e93bf6eb0

I run this from my fork client, can't find this transaction,
but my fork client think it's a duplication block, maybe there is some bug check the duplication transaction?