Author Topic: Sparkle Alpha Test Network Live: Mining to be Honored in Real Network  (Read 27584 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster


I think someone is just burst mining it since the difficulty adjusts so fast.  That hard fork to fix that is still a long ways away...

EDIT: Difficulty is also adjusted every block, but based on the average time of the last 1000 blocks, so someone dumping AWS instances on it could mine quite a few blocks before the difficulty adjustment caught up with them in each burst.

Good thing this is being tested.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Troglodactyl

  • Hero Member
  • *****
  • Posts: 960
    • View Profile
I think someone is just burst mining it since the difficulty adjusts so fast.  That hard fork to fix that is still a long ways away...

EDIT: Difficulty is also adjusted every block, but based on the average time of the last 1000 blocks, so someone dumping AWS instances on it could mine quite a few blocks before the difficulty adjustment caught up with them in each burst.
« Last Edit: November 29, 2014, 05:52:20 pm by Troglodactyl »

Offline Frodo

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
  • BitShares: frodo
Yeah me too. With so low block times there are constantly forks.
When I think that I'm on the wrong fork I just delete the downloaded chain. It usually finds the longest chain then.
Not exactly elegant though  :)

Offline arubi

  • Sr. Member
  • ****
  • Posts: 209
    • View Profile
I'm forked as hell.. what's a good node to be connected to?
also, I just saw one node with current_head_block_number": 3685, so I'm guessing you're on a fork too.

Network completely borked :(

another edit:

Now I'm on this head : blockchain_head_block_num": 3829,
« Last Edit: November 29, 2014, 05:43:49 pm by arubi »

Offline Frodo

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
  • BitShares: frodo
Looks like difficulty adjusted down. I'm currently on block height 3505.

Offline arubi

  • Sr. Member
  • ****
  • Posts: 209
    • View Profile
Is the target still high or am I on a fork?
I'm connected to 8+ peers who all share my block height..

Offline bitder

  • Full Member
  • ***
  • Posts: 65
    • View Profile
The mining difficulty is not correct. The current situation is that the block times are getting larger.

Code: [Select]
>>> blockchain_list_blocks
HEIGHT  TIMESTAMP           SIGNING DELEGATE                # TXS   SIZE    LATENCY PROCESSING TIME
===================================================================================================
3224    2014-11-29T16:06:59 SPKKMx5vptvYe7WNRLHnJb7cr4pi... 0       92      0       0.002701       
3223    2014-11-29T15:47:48 SPKFQS6yDC1TgNxooLDjLCLswBou... 0       92      0       0.002129       
3222    2014-11-29T15:23:42 SPKFQS6yDC1TgNxooLDjLCLswBou... 0       92      0       0.002542       
3221    2014-11-29T15:17:37 SPKFrj9Lc4hhCRpkaiMBckWG5gkG... 0       92      0       0.002543       
3220    2014-11-29T15:13:13 SPK7Zyv3DeS2uqsDZ6Wc5X8hFrtT... 0       92      0       0.002715       
3219    2014-11-29T15:10:33 SPKDUSDbriW3tWA92ANGLFWDihvk... 0       92      0       0.002455       
3218    2014-11-29T15:07:40 SPKKMx5vptvYe7WNRLHnJb7cr4pi... 0       92      0       0.001791       
3217    2014-11-29T14:58:01 SPKKNtcwD1EWzPgzxE9xb2JML7wv... 0       92      0       0.001842       
3216    2014-11-29T14:55:36 SPKPjt9uYppQzbzp6NRTXnfiyJsW... 0       92      0       0.002943       
3215    2014-11-29T14:49:13 SPKJCdV2pV4EjoxCkyUkfqKj4drf... 1       274     0       0.005777       
3214    2014-11-29T14:38:17 SPKKbKY6iwQpUFeLrprr364qE8iW... 0       92      0       0.002019       
3213    2014-11-29T14:32:32 SPKEX97Xaptf9vvmsaojRWuNUc9s... 0       92      0       0.00207       
3212    2014-11-29T14:25:35 SPKL6JFtCBGX8uuxuTUxkWD5xbTH... 0       92      0       0.001951       
3211    2014-11-29T14:25:20 SPK3PpAz2iGJS6jJVhKqs1vX8sSe... 0       92      0       0.002021       
3210    2014-11-29T14:24:47 SPKBJWn8uiGFL8XXGLGphm4Pufht... 0       92      0       0.001921       
3209    2014-11-29T14:24:25 SPKBcbLKHChWSX59M2VNZHhKfNcj... 0       92      0       0.001918       
3208    2014-11-29T14:24:22 SPKDUSDbriW3tWA92ANGLFWDihvk... 0       92      0       0.001821       
3207    2014-11-29T14:22:07 SPKG2snxzBpyWT7T8SLDjzt75SrF... 0       92      0       0.001829       
3206    2014-11-29T14:21:49 SPKGxpPrb1bajvsno6uNVJ5Kr6gf... 0       92      0       0.001933       
3205    2014-11-29T14:21:11 SPK6bigeXk1FvCWv8VVR865GU2Hi... 0       92      0       0.001932       

But the difficulty is increasing (currently at 94529)
Code: [Select]
>>> info
{
  "blockchain_head_block_num": 3224,
  "blockchain_head_block_age": "2 minutes old",
  "blockchain_head_block_timestamp": "2014-11-29T16:06:59",
  "blockchain_difficulty": 94529,
  "blockchain_confirmation_requirement": 6,
  "blockchain_share_supply": "2,000,161,198.33637 SPK",
  "blockchain_random_seed": "30594b9f35866ac67a679e6e94da78471279cd30",
...

The the new_difficulty calculation should be something like this:
Code: [Select]
$ git diff
diff --git a/libraries/blockchain/chain_database.cpp b/libraries/blockchain/chain_database.cpp
index 8d0b17e..c94519c 100644
--- a/libraries/blockchain/chain_database.cpp
+++ b/libraries/blockchain/chain_database.cpp
@@ -724,7 +724,7 @@ namespace bts { namespace blockchain {
 
                const auto difficulty = pending_state->get_property( current_difficulty ).as_uint64();
 
-               int64_t new_difficulty = ((difficulty * expected_time) / delta_time);
+               int64_t new_difficulty = ((difficulty * BTS_BLOCKCHAIN_BLOCK_INTERVAL_SEC) / delta_time);
                //ulog( "${d} => ${n}", ( "d", difficulty ) ("n",new_difficulty) );
 
                /*

Note if the delta_time between blocks is larger than the BTS_BLOCKCHAIN_BLOCK_INTERVAL_SEC time then the difficulty is adjusted lower and if the delta_time is smaller than the desired block time then the difficulty is adjusted higher.
wallet_account_set_approval delegate.bitder 1

busygin

  • Guest
While mining, it made a transaction I've never requested. Is it expected or is there a security hole and someone got access to my account? Also, it has some garbage in memo.

...

Did you build it yourself, or were you using someone's binaries?

Built myself on Ubuntu.

Offline pgbit

  • Sr. Member
  • ****
  • Posts: 241
    • View Profile

Offline Troglodactyl

  • Hero Member
  • *****
  • Posts: 960
    • View Profile
While mining, it made a transaction I've never requested. Is it expected or is there a security hole and someone got access to my account? Also, it has some garbage in memo.

...

Did you build it yourself, or were you using someone's binaries?

busygin

  • Guest
While mining, it made a transaction I've never requested. Is it expected or is there a security hole and someone got access to my account? Also, it has some garbage in memo.

>> history

TIMESTAMP           BLOCK     FROM                TO                  AMOUNT                  MEMO                                        BALANCE                 FEE                 ID     
==============================================================================================================================================================================================
2014-11-29T13:31:21 3062      cliqueman           SPK5cexJ7ufRFZdR... 749.00000 SPK           ����@lt��kJoEt�E���                         -0.50000 SPK            0.50000 SPK         27ecc681


>> blockchain_get_transaction 27ecc681

{
  "trx": {
    "expiration": "2014-11-29T14:26:08",
    "delegate_slate_id": null,
    "operations": [{
        "type": "deposit_op_type",
        "data": {
          "amount": 74900000,
          "condition": {
            "asset_id": 0,
            "delegate_slate_id": 0,
            "type": "withdraw_signature_type",
            "data": {
              "owner": "SPKLZQ3D1qUasXkW7ygVM3T9Fw849cDCZaFm",
              "memo": {
                "one_time_key": "SPK5BBQ7PDHdN8WGX6JgjjKDox2QLhLAK7ySFrepMSJvf1t4BxY6p",
                "encrypted_memo_data": "a5782f8bcdf4f908a04a48178962d60be1149f199a64e4184ec9bc46a8b632a66e5aead6bb7128e3b18d4ce271976f0e5260bbfb6d9a7d0a7720c7265f1a15ad"
              }
            }
          }
        }
      },{
        "type": "withdraw_op_type",
        "data": {
          "balance_id": "SPK7ihS7SRLPfpBKbFXDkSvkaAp1SHcoMgRf",
          "amount": 74950000,
          "claim_input_data": ""
        }
      }
    ],
    "reserved": "",
    "signatures": [
      "20496e12bdf08904145609e208782f9e08d07dc5de2369f4d57744c23420381f26c451374f548415b58924fc8321ac9a5206f557e4f0ddac204595c38d8dab3e80"
    ]
  },
  "signed_keys": [
    "SPK4qm73LfwLtWrUKjAgHzFZA9fmSLhLPFWg",
    "SPKDhRigcD1uZ9PdgDM6tV8AC8RBTfvvHjeh",
    "SPK9inLtF25gyJ5VxF2rQo2ozebxEnZVGY8T",
    "SPKHuvkJ6w6XhoM8k84SfBcYKH8DnzQJV4a7",
    "SPKDbaFgEULahd7xtowwxXSgydCUxbX3QsFt"
  ],
  "validation_error": null,
  "required_deposits": [],
  "provided_deposits": [[
      "SPK6MnwMmwhUBPEzY9PTNbmFL92zsUjjipXc",{
        "amount": 74900000,
        "asset_id": 0
      }
    ]
  ],
  "deposits": [[
      0,{
        "amount": 74900000,
        "asset_id": 0
      }
    ]
  ],
  "withdraws": [[
      0,{
        "amount": 74950000,
        "asset_id": 0
      }
    ]
  ],
  "yield": [],
  "deltas": [[
      0,{
        "amount": 74900000,
        "asset_id": 0
      }
    ],[
      1,{
        "amount": -74950000,
        "asset_id": 0
      }
    ]
  ],
  "required_fees": {
    "amount": 0,
    "asset_id": 0
  },
  "alt_fees_paid": {
    "amount": 0,
    "asset_id": 0
  },
  "balance": [[
      0,
      50000
    ]
  ],
  "net_delegate_votes": [],
  "chain_location": {
    "block_num": 3062,
    "trx_num": 0
  }
}

Offline arubi

  • Sr. Member
  • ****
  • Posts: 209
    • View Profile
So.. how many connections are you getting?
I'm on 4, one of them is the node from the list on page 1.
Blockchain height is 2741 and difficulty is 4194.

Does that sound like the main chain?

edit:
Suddenly 8 connections, a couple hundred blocks missed, difficulty back to 100...
Very strange.


Seems to have worked itself out.
« Last Edit: November 29, 2014, 12:37:12 pm by arubi »

Offline blahblah7up

  • Full Member
  • ***
  • Posts: 192
    • View Profile
Sparkle Alpha 4 QT win32 binary

github/upgradeadvice/upgradeadvice.github.io/releases/tag/0.0.4
The images are kinda borked, but it works and you can mine. I'll work on it more later if there's any interest.

It doesn't work for me as well... :(

Try Visual C++ Redistributable Packages for Visual Studio 2013

Tried with Packages but doesn't work for me either.

Offline upgradeadvice

  • Newbie
  • *
  • Posts: 2
    • View Profile
Sparkle Alpha 4 QT win32 binary

github/upgradeadvice/upgradeadvice.github.io/releases/tag/0.0.4
The images are kinda borked, but it works and you can mine. I'll work on it more later if there's any interest.

It doesn't work for me as well... :(

Try Visual C++ Redistributable Packages for Visual Studio 2013

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
Sparkle Alpha 4 QT win32 binary

github/upgradeadvice/upgradeadvice.github.io/releases/tag/0.0.4
The images are kinda borked, but it works and you can mine. I'll work on it more later if there's any interest.

It doesn't work for me as well... :(
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop