Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - xiaorui.dong

Pages: [1]
1
Technical Support / Duplicate transaction on different Block
« on: May 20, 2015, 02:17:31 am »
     I build 10 node to test the bitshares sourcecode.But I met a problem yestarday.
     I found the block chain have some Duplicate transaction .
     I Confused that why the NO.601 block have the TRX with "block_num": 756,
 
Did anyone met before?Or who knows the reason?

For example:
blockchain_get_block_transactions 601
[[
    "fbc3e30c1ed74cbda1956c6ea2647645e8d18c61",{
      "trx": {
        "expiration": "2015-05-18T07:14:20",
        "operations": [{
            "type": "withdraw_op_type",
            "data": {
              "balance_id": "TTSPznLYup2rKYNRDQiTuRd58auWn9WojRth",
              "amount": 10050000,
              "claim_input_data": ""
            }
          },{
            "type": "deposit_op_type",
            "data": {
              "amount": 10000000,
              "condition": {
                "asset_id": 0,
                "slate_id": 0,
                "type": "withdraw_signature_type",
                "data": {
                  "owner": "TTSDyxeokoeGhKg39HEMpsBn6r2Hw7iURZ9k"
                }
              }
            }
          }
        ],
        "signatures": [
          "2017ba81858acf26d315b7fe0b2be0e2837fa0991db429961a3e46fa789d3c6a903fbb3f8d13452fc89855f1aeb379cce8e043df825a51a819db7a32c6756ad122"
        ]
      },
      "signed_keys": [],
      "deposits": [[
          0,
          10000000
        ]
      ],
      "withdraws": [[
          0,
          10050000
        ]
      ],
      "yield": [],
      "deltas": [[
          0,[[
              0,
              -10050000
            ]
          ]
        ],[
          1,[[
              0,
              10000000
            ]
          ]
        ]
      ],
      "required_fees": {
        "amount": 0,
        "asset_id": 0
      },
      "alt_fees_paid": {
        "amount": 0,
        "asset_id": 0
      },
      "balance": [[
          0,
          50000
        ]
      ],
      "delegate_vote_deltas": [],
      "chain_location": {
        "block_num": 756,
        "trx_num": 0
      }
    }
  ]
]

blockchain_get_block_transactions 613
[[
    "fbc3e30c1ed74cbda1956c6ea2647645e8d18c61",{
      "trx": {
        "expiration": "2015-05-18T07:14:20",
        "operations": [{
            "type": "withdraw_op_type",
            "data": {
              "balance_id": "TTSPznLYup2rKYNRDQiTuRd58auWn9WojRth",
              "amount": 10050000,
              "claim_input_data": ""
            }
          },{
            "type": "deposit_op_type",
            "data": {
              "amount": 10000000,
              "condition": {
                "asset_id": 0,
                "slate_id": 0,
                "type": "withdraw_signature_type",
                "data": {
                  "owner": "TTSDyxeokoeGhKg39HEMpsBn6r2Hw7iURZ9k"
                }
              }
            }
          }
        ],
        "signatures": [
          "2017ba81858acf26d315b7fe0b2be0e2837fa0991db429961a3e46fa789d3c6a903fbb3f8d13452fc89855f1aeb379cce8e043df825a51a819db7a32c6756ad122"
        ]
      },
      "signed_keys": [],
      "deposits": [[
          0,
          10000000
        ]
      ],
      "withdraws": [[
          0,
          10050000
        ]
      ],
      "yield": [],
      "deltas": [[
          0,[[
              0,
              -10050000
            ]
          ]
        ],[
          1,[[
              0,
              10000000
            ]
          ]
        ]
      ],
      "required_fees": {
        "amount": 0,
        "asset_id": 0
      },
      "alt_fees_paid": {
        "amount": 0,
        "asset_id": 0
      },
      "balance": [[
          0,
          50000
        ]
      ],
      "delegate_vote_deltas": [],
      "chain_location": {
        "block_num": 756,
        "trx_num": 0
      }
    }
  ]
]

2
Technical Support / Help——A question about sign_block
« on: May 13, 2015, 06:49:44 am »
Dear all,
    I don't understand the source code in function "void wallet::sign_block( signed_block_header& header )":
     FC_ASSERT( fc::ripemd160::hash( header.previous_secret ) == *prev_secret_hash );
   Why the header.previous_secret should Equal the prev_secret_hash?
   And what situation can cause the exception of FC_ASSERT( fc::ripemd160::hash( header.previous_secret ) == *prev_secret_hash )?

Thanks verymuch.

3
   求助,我在本地搭建代理节点想测试代理出块的流程。可是总有几个代理不出块,查看代码
   在void wallet::sign_block( signed_block_header& header )函数里面的如下断言出出错。
   FC_ASSERT( fc::ripemd160::hash( header.previous_secret ) == *prev_secret_hash );

   求大神能告诉下,哪些情况会导致这两个hash不相等呢,从而导致校验不过呢?
   PS:最好能解释下这里的header.previous_secret和prev_secret_hash的含义和作用。原谅小白对这个签块模块机制不太明白。可以解释下最好

Pages: [1]