Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

V12 Release

Discussion in 'Official Announcements' started by eduffield, Aug 14, 2015.

  1. yidakee

    yidakee Well-known Member
    Foundation Member

    Joined:
    Apr 16, 2014
    Messages:
    1,812
    Likes Received:
    1,168
    Trophy Points:
    283
    This is where my tech knowledge of the blockchain starts to fail me. So what determines the size of a tx? Isn't it the sum of vins + vouts?
    So if you create a feature to consolidate all your inputs after each tx through a persistent change address, every subsequent tx will have a much lower kb weight
    Obviously this has other implications and not ideal for all, but just trying to figure this out.

    .
     
  2. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    The size of tx is the size of the raw data structure filled with your data, it has (almost) nothing to do with values. ("almost" - because different value could take different amount of memory/space to store them)
    I would recommend to read more about txes:
    https://bitcoin.org/en/developer-guide#transactions - to get the idea
    https://bitcoin.org/en/developer-examples#transaction-tutorial - to see some real world examples
    https://bitcoin.org/en/developer-reference#raw-transaction-format - to dive deeper into format

    Having a persistent change address could help you to eliminate situations where you would have many inputs for some txes but it is highly not recommended use case because of the huge damage it brings to anonymity.
     
    • Like Like x 1
  3. yidakee

    yidakee Well-known Member
    Foundation Member

    Joined:
    Apr 16, 2014
    Messages:
    1,812
    Likes Received:
    1,168
    Trophy Points:
    283
    UdjinM6 Gotcha! Anonymity in this case would not be essencial. Anyway, thank you very much for taking the time to answer and the material to review!
     
  4. Bridgewater

    Bridgewater Well-known Member
    Foundation Member

    Joined:
    Dec 14, 2014
    Messages:
    183
    Likes Received:
    164
    Trophy Points:
    203
    I have a masternode stuck at block 415399.

    The debug.log is full of these messages:
    Code:
    2016-02-13 09:18:13 ProcessMessage(headers, 162003 bytes) FAILED peer=42
    2016-02-13 09:18:13 ERROR: AcceptBlockHeader : block is marked invalid
    2016-02-13 09:18:13 ERROR: invalid header received 0000000000056aa1260c0eeab2bf21da258e1a528ba6c9a20a739b70d7330af2
    2016-02-13 09:18:13 ProcessMessage(headers, 162003 bytes) FAILED peer=5
    2016-02-13 09:18:14 ERROR: AcceptBlockHeader : block is marked invalid
    2016-02-13 09:18:14 ERROR: invalid header received 0000000000056aa1260c0eeab2bf21da258e1a528ba6c9a20a739b70d7330af2
    2016-02-13 09:18:14 ProcessMessage(headers, 162003 bytes) FAILED peer=29
    2016-02-13 09:18:15 ERROR: AcceptBlockHeader : block is marked invalid
    2016-02-13 09:18:15 ERROR: invalid header received 0000000000056aa1260c0eeab2bf21da258e1a528ba6c9a20a739b70d7330af2
    2016-02-13 09:18:15 ProcessMessage(headers, 162003 bytes) FAILED peer=8
    2016-02-13 09:18:15 ERROR: AcceptBlockHeader : block is marked invalid
    2016-02-13 09:18:15 ERROR: invalid header received 0000000000056aa1260c0eeab2bf21da258e1a528ba6c9a20a739b70d7330af2
    2016-02-13 09:18:15 ProcessMessage(headers, 162003 bytes) FAILED peer=3
    2016-02-13 09:18:20 ERROR: AcceptBlockHeader : block is marked invalid
    2016-02-13 09:18:20 ERROR: invalid header received 0000000000056aa1260c0eeab2bf21da258e1a528ba6c9a20a739b70d7330af2
    2016-02-13 09:18:20 ProcessMessage(headers, 162003 bytes) FAILED peer=6
    Will -reindex fix this or is there another problem?
     
  5. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Maybe this is worth a try first:

     
    • Like Like x 3
  6. Bridgewater

    Bridgewater Well-known Member
    Foundation Member

    Joined:
    Dec 14, 2014
    Messages:
    183
    Likes Received:
    164
    Trophy Points:
    203
    That worked like a charm! Thanks Flare!
     
    • Like Like x 1