Guest User

Untitled

a guest
Dec 14th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. blobdata get_block_hashing_blob(const block& b)
  2. {
  3. blobdata blob = t_serializable_object_to_blob(static_cast<block_header>(b));
  4. crypto::hash tree_root_hash = get_tx_tree_hash(b);
  5. blob.append(reinterpret_cast<const char*>(&tree_root_hash), sizeof(tree_root_hash));
  6. blob.append(tools::get_varint_data(b.tx_hashes.size()+1));
  7. return blob;
  8. }
Add Comment
Please, Sign In to add comment