Bugfix: Provide correctly-ordered transaction hash (using new key hash_ for backward compatibility)

This commit is contained in:
Luke Dashjr
2014-02-24 04:41:37 +00:00
parent d6002f955f
commit b9572db7d5
3 changed files with 12 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ typedef uint32_t blknonce_t;
struct blktxn_t {
unsigned char *data;
size_t datasz;
// NOTE: The byte order of hash is backward; use hash_ instead
txnhash_t *hash;
signed long dependcount;
@@ -31,6 +32,8 @@ struct blktxn_t {
uint64_t fee;
bool required;
int16_t sigops;
txnhash_t *hash_;
};
// BIP 23: Long Polling