Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 3c2c85888846d405c189b6575a578ea9d8d072d8
      
https://github.com/btcsuite/btcd/commit/3c2c85888846d405c189b6575a578ea9d8d072d8
  Author: Dave Collins <[email protected]>
  Date:   2016-02-03 (Wed, 03 Feb 2016)

  Changed paths:
    M btcjson/chainsvrcmds_test.go

  Log Message:
  -----------
  btcjson: Specify constant size in tests.

This modifies the test for createrawtransaction to specify the constant
size passed as an int64.  This is necessary because the NewCmd function
accepts the parameters as interfaces in order to support varargs and a
raw numeric constant is treated as an integer.  Since the constant value
is larger than an int32, this causes certain platforms like ARM which
treat a raw integer as a 32-bit integer to fail to compile.

This is work towards #600.


  Commit: c7e6c1e88f74bb399233f573476d80e964165aee
      
https://github.com/btcsuite/btcd/commit/c7e6c1e88f74bb399233f573476d80e964165aee
  Author: Dave Collins <[email protected]>
  Date:   2016-02-03 (Wed, 03 Feb 2016)

  Changed paths:
    M txscript/reference_test.go

  Log Message:
  -----------
  txscript: Correct JSON float conversions in tests.

This modifies the conversion of the output index from the JSON-based
test data for valid and invalid transactions as well as the signature
hash type for signature hash tests to first convert to a signed int and
then to an unsigned int.  This is necessary because the result of a
direct conversion of a float to an unsigned int is implementation
dependent and doesn't result in the expected value on all platforms.

Also, while here, change the function names in the error prints to match
the actual names.

Fixes #600.


Compare: https://github.com/btcsuite/btcd/compare/0b32febe5c83...c7e6c1e88f74

Reply via email to