Code Monkey home page Code Monkey logo

Comments (9)

tpruvot avatar tpruvot commented on May 20, 2024

yes, staking txs are not yet properly listed in listtransactions

try getwalletinfo for the balance details

from lux.

tpruvot avatar tpruvot commented on May 20, 2024

If you (or someone else) have some other staking wallet with a proper listtransactions output, would be nice to have a reference/sample to keep the same format

from lux.

tpruvot avatar tpruvot commented on May 20, 2024

Current testnet sample of a stake tx (noisy) => 2 - 0.4 (20% MN) => +1.6 in wallet (double of mainnet)

{
  "account": "",
  "address": "LSUGht5WuwxprsESAiDq9onHQMpqvS5Mgb",
  "category": "generate",
  "amount": 2.00000000,
  "label": "",
  "vout": 1,
  "confirmations": 288,
  "bcconfirmations": 288,
  "generated": true,
  "blockhash": "9762f04f579b51a94f0bbd6618e288c1c8f9ac3cfebe6c4317b82c07eeafc626",
  "blockindex": 1,
  "blocktime": 1533122710,
  "txid": "fe395c0a3e93711197ea57182ee966fb426a366870fbd3329f0051bbd707cdfb",
  "walletconflicts": [
  ],
  "time": 1533122710,
  "timereceived": 1533122710
}, 
{
  "account": "",
  "address": "LfLYdQJhnPGQuRQbCwJuvZC76oL1Kv646Q",
  "category": "send",
  "amount": -0.40000000,
  "vout": 3,
  "confirmations": 288,
  "bcconfirmations": 288,
  "generated": true,
  "blockhash": "9762f04f579b51a94f0bbd6618e288c1c8f9ac3cfebe6c4317b82c07eeafc626",
  "blockindex": 1,
  "blocktime": 1533122710,
  "txid": "fe395c0a3e93711197ea57182ee966fb426a366870fbd3329f0051bbd707cdfb",
  "walletconflicts": [
  ],
  "time": 1533122710,
  "timereceived": 1533122710
}, 
{
  "account": "",
  "address": "LSUGht5WuwxprsESAiDq9onHQMpqvS5Mgb",
  "category": "send",
  "amount": -196.91000000,
  "label": "",
  "vout": 2,
  "confirmations": 288,
  "bcconfirmations": 288,
  "generated": true,
  "blockhash": "9762f04f579b51a94f0bbd6618e288c1c8f9ac3cfebe6c4317b82c07eeafc626",
  "blockindex": 1,
  "blocktime": 1533122710,
  "txid": "fe395c0a3e93711197ea57182ee966fb426a366870fbd3329f0051bbd707cdfb",
  "walletconflicts": [
  ],
  "time": 1533122710,
  "timereceived": 1533122710
}, 
{
  "account": "",
  "address": "LSUGht5WuwxprsESAiDq9onHQMpqvS5Mgb",
  "category": "send",
  "amount": -196.90000000,
  "label": "",
  "vout": 1,
  "confirmations": 288,
  "bcconfirmations": 288,
  "generated": true,
  "blockhash": "9762f04f579b51a94f0bbd6618e288c1c8f9ac3cfebe6c4317b82c07eeafc626",
  "blockindex": 1,
  "blocktime": 1533122710,
  "txid": "fe395c0a3e93711197ea57182ee966fb426a366870fbd3329f0051bbd707cdfb",
  "walletconflicts": [
  ],
  "time": 1533122710,
  "timereceived": 1533122710
}, 
{
  "account": "",
  "category": "send",
  "amount": 0.00000000,
  "vout": 0,
  "confirmations": 288,
  "bcconfirmations": 288,
  "generated": true,
  "blockhash": "9762f04f579b51a94f0bbd6618e288c1c8f9ac3cfebe6c4317b82c07eeafc626",
  "blockindex": 1,
  "blocktime": 1533122710,
  "txid": "fe395c0a3e93711197ea57182ee966fb426a366870fbd3329f0051bbd707cdfb",
  "walletconflicts": [
  ],
  "time": 1533122710,
  "timereceived": 1533122710
}`

from lux.

tpruvot avatar tpruvot commented on May 20, 2024

the last one is now ignored by commit 65ac1fa

from lux.

nguyenhoangtran11 avatar nguyenhoangtran11 commented on May 20, 2024

Could you please checkout bug_fix branch and test it?

from lux.

fastgrav avatar fastgrav commented on May 20, 2024

compiling now

from lux.

fastgrav avatar fastgrav commented on May 20, 2024

CXX libbitcoin_server_a-rest.o
miner.cpp: In member function âvoid BlockAssembler::addPackageTxs(uint64_t)â:
miner.cpp:793:95: error: no match for call to â(CompareTxMemPoolEntryByAncestorFee) (const value_type&, CTxMemPoolModifiedEntry)â
CompareTxMemPoolEntryByAncestorFee()(*modit, CTxMemPoolModifiedEntry(iter))) { {
^
In file included from miner.h:10:0,
from miner.cpp:6:
txmempool.h:297:10: note: candidate: bool CompareTxMemPoolEntryByAncestorFee::operator()(const CTxMemPoolEntry&, const CTxMemPoolEntry&) const
bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
^
txmempool.h:297:10: note: no known conversion for argument 1 from âconst value_type {aka const CTxMemPoolModifiedEntry}â to âconst CTxMemPoolEntry&â
miner.cpp:799:15: error: expected â}â before âelseâ
} else {
^
CXX libbitcoin_server_a-rpcblockchain.o
CXX libbitcoin_server_a-rpcdarksend.o
At global scope:
cc1plus: warning: unrecognized command line option â-Wno-implicit-fallthroughâ
Makefile:8532: recipe for target 'libbitcoin_server_a-miner.o' failed
make[2]: *** [libbitcoin_server_a-miner.o] Error 1
make[2]: *** Waiting for unfinished jobs....

make[2]: Leaving directory '/usr/src/lux/src'
Makefile:14590: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/lux/src'
Makefile:608: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

from lux.

tpruvot avatar tpruvot commented on May 20, 2024

resolved

from lux.

fastgrav avatar fastgrav commented on May 20, 2024

"immature_credit" branch solved the issue with balance and show the correct amount for:

{
"account": "",
"address": "Lxxxxxxxxxxxxxx",
"category": "immature",
"amount": 0.20000000,
"label": "",
"vout": 2,
"confirmations": 3,
"bcconfirmations": 3,
"generated": true,

Thank you
Andrei

from lux.

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.