Giter Club home page Giter Club logo

Comments (4)

ZeroASIC avatar ZeroASIC commented on June 14, 2024

This issue might only be cosmetic. getbalance returns 0 when it shouldn't.

from dcrwallet.

Retord avatar Retord commented on June 14, 2024

try doing
dcrctl -u -P --wallet getbalance "default" 0 all
This will give you your total wallet balance including unconfirmed balances.
and do
dcrctl -u -P --wallet getbalance "default" 0 spendable
will give you the balance you can spend and is not being spent on buying tickets and can be sent to other wallets.

Basically once your wallet spendable balance meets the maxticketprice criteria, a ticket is bought on the new block and rest of the balance gets transferred to a new address made from your own seed, since the transaction is unconfirmed till the next block it doesn't show up when u only do getbalance.

if you restart your wallet at that point and set maxticketprice to 0.0
from the next blockchain once the last transaction has been confirmed, your entire spendable balance will show up.

~This is basically what I noticed from my recent ticket buying adventures.
A dev can elaborate more.

from dcrwallet.

cjepson avatar cjepson commented on June 14, 2024

Known issue. OP_SSTXCHANGE tagged outputs require 1-conf to spend in wallet/mempool. Both need to be refactored to allow chaining of tickets. Buying a ticket will send the remaining funds to change, so you won't see it show up in balance until getting 1-conf.

In the meantime, getbalance can be changed to show OP_SSTXCHANGE tagged amounts. The caveat is they're still unspendable, so it might confuse the user.

from dcrwallet.

cjepson avatar cjepson commented on June 14, 2024

Should be fixed in #104

from dcrwallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.