Bitcoin Forum
April 24, 2024, 09:58:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Altcoin branch of Litecoin 16.3 won't show transactions  (Read 94 times)
number435398 (OP)
Jr. Member
*
Offline Offline

Activity: 260
Merit: 6


View Profile
October 07, 2018, 08:04:00 PM
 #1

I forked the litecoin wallet version 16.3 for an altcoin.  When I mined directly to the wallet, I mined a number of blocks, but none showed up in the wallet transactions.  They did show up on the explorer.  I was also able to confirm the transactions within the console of the wallet, but didn't show up.  I then transferred some coins from another wallet to this one's address; still didn't show up in the wallet.  It has been over 12 hours and far beyond any "maturity" code for either the coinbase or regular transactions to appear.  I'm not aware of tweaking any code that could impact that.  What parts of the code could produce and or affect this result?  The transactions don't even appear as pending.  They simply don't display and attempting to send the coins results in the claim that there are no coins in my wallet.
1713952699
Hero Member
*
Offline Offline

Posts: 1713952699

View Profile Personal Message (Offline)

Ignore
1713952699
Reply with quote  #2

1713952699
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713952699
Hero Member
*
Offline Offline

Posts: 1713952699

View Profile Personal Message (Offline)

Ignore
1713952699
Reply with quote  #2

1713952699
Report to moderator
Heisenberg_Hunter
Legendary
*
Offline Offline

Activity: 1583
Merit: 1276


Heisenberg Design Services


View Profile WWW
October 10, 2018, 06:53:25 AM
Last edit: October 10, 2018, 09:22:58 AM by Heisenberg_Hunter
 #2

Try restarting the wallet via cmd. While restarting type --rescan in cmd so that the wallet would re-compute almost all the transactions and would display the new updated balances. I need few details so that I can figure out where have you gone wrong

[1] Are the coins showing up in another wallet? Since you have said you sent coins from another wallet, does that mean have you mined some coins to another wallet and are those coins showing up in that another wallet?

Litecoin official core wallet automatically rescans the portion of the blockchain and shows updated balances from time to time.

Quote
What parts of the code could produce and or affect this result?
I am not really good in the code, but let me try to explain how flow works...

Suppose you are the one who creates the Block and adds transaction to them using CreateNewBlock class. Once you have solved the block, the coinbase transaction looks for the scriptPubKey parameter of the class and sends you the generated coins.

For you to get paid by coinbase transaction, the code is present in miner.cpp file I guess. I am not really sure about it  Tongue

Code:
// Create coinbase transaction.
    CMutableTransaction coinbaseTx;
    coinbaseTx.vin.resize(1);
    coinbaseTx.vin[0].prevout.SetNull();
    coinbaseTx.vout.resize(1);
    coinbaseTx.vout[0].scriptPubKey = scriptPubKeyIn;
    coinbaseTx.vout[0].nValue = nFees + GetBlockSubsidy(nHeight, chainparams.GetConsensus());
    coinbaseTx.vin[0].scriptSig = CScript() << nHeight << OP_0;
    pblock->vtx[0] = MakeTransactionRef(std::move(coinbaseTx));
    pblocktemplate->vchCoinbaseCommitment = GenerateCoinbaseCommitment(*pblock, pindexPrev, chainparams.GetConsensus());
    pblocktemplate->vTxFees[0] = -nFees;

    LogPrintf("CreateNewBlock(): block weight: %u txs: %u fees: %ld sigops %d\n", GetBlockWeight(*pblock), nBlockTx, nFees, nBlockSigOpsCost);
number435398 (OP)
Jr. Member
*
Offline Offline

Activity: 260
Merit: 6


View Profile
October 10, 2018, 11:30:28 AM
 #3

This matter evolved into this:
https://bitcointalk.org/index.php?topic=5046457.msg46665973#msg46665973
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!