Can anyone use the mining reward?


#1

error: {"code":-4,"message":"Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."}


#2

[
{
"txid" : "62ebf9f5670a800fd650974093807840958ad75dc6b766e1ab1bc5e6573dbd6a",
"vout" : 0,
"address" : "muScVpwE1u3kLuSuGM9B7SoV3Ts9hL8MoD",
"scriptPubKey" : "21024d20a408c604d4dd572cb1a92c1440ec76dcaad61b29e2ba5753f7c8bf2554b3ac",
"amount" : 0.21600000,
"confirmations" : 154,
"spendable" : true
}
]


#3

Were you trying to send them to a transparent address? You can only spend mining rewards in a private transaction to a z-addr.


#4

All mined coins are mined into a transparent address at first. When you want to use these coins, you would first need to make a JoinSplit. The network enforces all coinbase coins to go into a JoinSplit to encourage people using JoinSplits directly from the start.


#5

yes, I have try that but this operation crash my zcashd


#6

You might not have enough free memory. You'll need at least 4GB to do a JoinSplit.


#7

I try to use z_sendmany follow this https://github.com/zcash/zcash/wiki/Beta-Guide but it only crash my zcashd


#8

It seems I have enough memory more than 4GB.... 14GB free
total used free shared buff/cache available
Mem: 15G 669M 14G 9.3M 222M 14G
Swap: 7.7G 0B 7.7G


#9

If you run zcashd in the foreground with the -printtoconsole option, does it print any error message before it crashes?


#10

No, It also makes me disconnected to the server


#11

msghand thread start
addcon thread start
opencon thread start
net thread start
ERROR: CheckInputs(): tried to spend coinbase with transparent outputs
ERROR: AcceptToMemoryPool: ConnectInputs failed 45e7bde930e399a2f3f6ab719bbc0e69fd6d1015118eb47e03d07f76e8fe4a2a
ERROR: CheckInputs(): tried to spend coinbase with transparent outputs
ERROR: AcceptToMemoryPool: ConnectInputs failed d8e3f50661f75be08660103bc71f2c3add03ec8beb8e87499a16f33c2fa2c816
keypool reserve 9
CreateNewBlock(): total size 1000
Running ZcashMiner with 1 transactions in block (274 bytes)

receive version message: /Satoshi:1.0.0/: version 170002, blocks=594, us=123.119.46.87:35408, peer=1
Added time data, samples 2, offset -7 (+0 minutes)
Loading addresses from DNS seeds (could take a while)
0 addresses found from DNS seeds
dnsseed thread exit


#12

I try this
./src/zcash-cli z_sendmany "$TADDR" "[{\"address\": \"$ZADDR\", \"amount\": 0.02}]"