Bitcoin Forum
May 12, 2024, 04:14:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Balance doesn't change bitcoind  (Read 125 times)
makeholer (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile WWW
January 20, 2018, 02:52:21 AM
 #1

Im trying to use testnet, generated some addresses, when i type "bitcoin-cli getaddressesbyaccount main" i can see the addresses like this


[
  "mfa1WF1oh4nYpVBNrswREzxCqzZBkNmaFc",
  "mqZiAjeiigg9PXiZBnceNgWuoALvbNYryr",
  "n1zGuGPwXM43t2xJhWbyQaYrQSCB8rwnuH"
]

Them i send some faucet to any of them, and the btc never reach the account, when i type "bitcoin-cli getbalance main"

it always say balance: 0

Tried many faucets and it shows my balance bitcoins on the transaction (website).

What im missing?
1715487243
Hero Member
*
Offline Offline

Posts: 1715487243

View Profile Personal Message (Offline)

Ignore
1715487243
Reply with quote  #2

1715487243
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
makeholer (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile WWW
January 20, 2018, 03:16:35 AM
 #2

Well, it suddenly shows now, and i dont know why, this sux =(


{
1.82000000
}
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
January 20, 2018, 03:19:46 AM
 #3

Don't use "main"... the "account name" parameter has been deprecated according to the docs. try just using:
Code:
bitcoin-cli getbalance
or
Code:
bitcoin-cli getbalance "*"


If you're still getting 0.00000000 using getbalance, then maybe it is simply because your testnode is not synced and it hasn't seen the transactions where your addresses receive the faucet payments. Try checking:
Code:
bitcoin-cli getnetworkinfo
and
Code:
bitcoin-cli getblockchaininfo

And make sure everything is as it should be (connections OK, number of blocks = current testnet blockheight etc)


EDIT: quite likely just because your node wasn't synced... TestNet can be a bit "odd" at times

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!