jl777 / SuperNET

57 stars 222 forks source link

sendtoaddress couldnt create rawtx #94

Open stox-re opened 8 years ago

stox-re commented 8 years ago
  1. Launch ../agents/iguana
  2. Sync BTC to RT
  3. load a wallet with "walletpassphrase" method, privatekey with balance was PMd on slack
  4. Did "balance" api call for address: 19hobDLpSxvBFXQq9WBKSC5P4UQjZcuLSc, result was correct.
  5. Did:

curl --url "http://127.0.0.1:7778" --data "{\"coin\":\"BTC\",\"method\":\"sendtoaddress\",\"params\":[\"1K5ixdY6V23qnkQ3QEfr29H1VjvnxHxjoz\", 0.001, \"testcomment\", \"sendcomment\"]}"

Result:

{"result":"592f2f369c5e7d463c9c27ee80a6eab07836d66ace1e2577e5da2fb473bf5067","signedtx":"0100000002aa2571302d0b58abe7a31f5ec64a27b449728e73d2d42c93e947081c9eef17e8000000006b483045022100da758d6ead93edccc5445919fde2964f433c3e816146e12bf01ab3b1cc3c3a7302203e4929fe0a98d6f98e03426a2523dca269fccdc517ad8ef6a534530963a035dc012102fe3c5930203d40dc84a77a69db78800c9ae5f881bff30d866cfb9b7a92daf674ffffffff6622d6b44cd9bd598e107fc990af9e9526189f6195901b6979a8ca03f2881eb10000000000ffffffff02a0860100000000001976a914c656f42448ba505b97848f3c6ccdb9c4a9aa4fec88ac893f1100000000001976a9145f7889380b9ea08fd8fa03145651cf9a214cfdc088ac00000000","complete":false,"tag":"13520151394432839433"}

COMPLETE: FALSE

  1. Ouput from iguana process was:

SEND.({"error":"couldnt create rawtx"}) numunspents.2 max.10000 sum 0.01240377 required 0.00110000 avail 0.01240377 satoshis 0.00100000, txfee 0.00010000 burnamount 0.00000000 vin0.scriptlen 25 stackdepth.0 needed.1 ( OP_HASH160 5f7889380b9ea08fd8fa03145651cf9a214cfdc0 OP_EQUALVERIFY OP_CHECKSIG) at offset.6 empty stack error iguana_interpreter -1 error.(0100000002aa2571302d0b58abe7a31f5ec64a27b449728e73d2d42c93e947081c9eef17e8000000006b483045022100da758d6ead93edccc5445919fde2964f433c3e816146e12bf01ab3b1cc3c3a7302203e4929fe0a98d6f98e03426a2523dca269fccdc517ad8ef6a534530963a035dc012102fe3c5930203d40dc84a77a69db78800c9ae5f881bff30d866cfb9b7a92daf674ffffffff6622d6b44cd9bd598e107fc990af9e9526189f6195901b6979a8ca03f2881eb10000000000ffffffff02a0860100000000001976a914c656f42448ba505b97848f3c6ccdb9c4a9aa4fec88ac893f1100000000001976a9145f7889380b9ea08fd8fa03145651cf9a214cfdc088ac00000000) signrawtransaction incomplete SEND.({"result":"592f2f369c5e7d463c9c27ee80a6eab07836d66ace1e2577e5da2fb473bf5067","signedtx":"0100000002aa2571302d0b58abe7a31f5ec64a27b449728e73d2d42c93e947081c9eef17e8000000006b483045022100da758d6ead93edccc5445919fde2964f433c3e816146e12bf01ab3b1cc3c3a7302203e4929fe0a98d6f98e03426a2523dca269fccdc517ad8ef6a534530963a035dc012102fe3c5930203d40dc84a77a69db78800c9ae5f881bff30d866cfb9b7a92daf674ffffffff6622d6b44cd9bd598e107fc990af9e9526189f6195901b6979a8ca03f2881eb10000000000ffffffff02a0860100000000001976a914c656f42448ba505b97848f3c6ccdb9c4a9aa4fec88ac893f1100000000001976a9145f7889380b9ea08fd8fa03145651cf9a214cfdc088ac00000000","complete":false})

jl777 commented 8 years ago

please retest with dPoW branch