dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.2k forks source link

testnet address inst valid #2187

Closed kiahmed closed 6 years ago

kiahmed commented 6 years ago

tried to get some testcoin to the following address which I got from the api call getaccountaddress default but all faucets errors saying invalid address ..what can I do? yedNNmaWuUqRHdwW1f6fbm5ADJbwoc57cy

UdjinM6 commented 6 years ago

Looks completely legit to me:

validateaddress yedNNmaWuUqRHdwW1f6fbm5ADJbwoc57cy
{
  "isvalid": true,
  "address": "yedNNmaWuUqRHdwW1f6fbm5ADJbwoc57cy",
  "scriptPubKey": "76a914c8d6047e56f7283dbe57bc80fafcbfb30d27d04288ac",
  "ismine": false,
  "iswatchonly": false,
  "isscript": false
}

Also explorers recognise it just fine: https://test.insight.dash.siampm.com/address/yedNNmaWuUqRHdwW1f6fbm5ADJbwoc57cy (this address has 1K+ tDASH in it btw)

kiahmed commented 6 years ago

hmm..that tells me even tho the faucet sent it still threw error saying invalid address. Anyway, but then for following request why it balance shows null? { "jsonrpc": "2.0", "method": "getaccountaddress", "params": ["default"], "id": 1 }

{ "result": "yedNNmaWuUqRHdwW1f6fbm5ADJbwoc57cy", "error": null, "id": 1 }

UdjinM6 commented 6 years ago

Not sure what you mean tbh... This method only returns you the address, it has nothing to do with the balance.

kiahmed commented 6 years ago

oh sorry..I had posted the wrong json. i ran this still the same result { "jsonrpc": "2.0", "method": "getbalance", "params": ["default"], "id": 1 } { "result": 0, "error": null, "id": 1 }

UdjinM6 commented 6 years ago

Hmmm... Are you using the latest version (from 0.12.3.x or develop branch)? Is you node fully synced?

kiahmed commented 6 years ago

hmm.it used to be fully synced..i restarted other day now see stuck at 151223. If I upgrade would it reindex or can continue from there?

{ "result": { "version": 120203, "protocolversion": 70208, "walletversion": 61000, "balance": 0, "privatesend_balance": 0, "blocks": 151223, "timeoffset": 0, "connections": 8, "proxy": "", "difficulty": 3.438605567000294, "testnet": true, "keypoololdest": 1521362416, "keypoolsize": 999, "paytxfee": 0, "relayfee": 0.00001, "errors": "" }, "error": null, "id": 1 }

UdjinM6 commented 6 years ago

Upgrade your node to 0.12.3.2 (see "Releases" for binaries or just checkout to v0.12.3.2 tag and compile) or compile latest develop (which is 0.12.4.0 pre-release). Next, use reconsiderblock 00000000255886cfa66e40ea0a6fa3d256457ec1a3ff873be1bbf2de0d8eb9ab rpc right after node start and then clearbanned. Node should find upgraded peers and sync to recent blocks.

kiahmed commented 6 years ago

where do i run the command ? Now I am in even bigger trouble I get this even without adding the reconsiderblock option , hope I dont have resync everything exec user process caused "exec format error"

thephez commented 6 years ago

You would run that command via dash-cli (or the Tools->Console window in Dash-QT if you are using the GUI) the same way you ran getbalance.

kiahmed commented 6 years ago

well, its in a container . my docker run command didnt change...all I did just upgraded to newer dash image and it starts dashd on run here is the run command docker run -it -d \ --name dash-test-node \ --restart always \ -p 19999:19999 \ -p 19998:19998 \ -v $PWD/dash:/root/.dashcore \ dash-testnet \ -testnet \ -server \ -rpcallowip=::/0 \ -rpcuser=xxxxx \ -rpcpassword=xxxxxxx \ -externalip=xxxxxxxxxxxx:19999 \ -printtoconsole \ -masternode=0

thephez commented 6 years ago

Do any of the RPC commands work? getinfo for instance? If any one of them works, they all should - unless the upgrade did not work (reconsiderblock was just added in 12.3).

kiahmed commented 6 years ago

finally got it to work..without reconsiderblock just ran clearbanned also deleted mncache.dat