Author

Topic: re-broadcasting a transaction? (Read 1496 times)

zvs
legendary
Activity: 1680
Merit: 1000
https://web.archive.org/web/*/nogleg.com
January 25, 2013, 09:19:05 AM
#4
void CWallet::ResendWalletTransactions()
{
    // Do this infrequently and randomly to avoid giving away
    // that these are our transactions.
    static int64 nNextTime;
    if (GetTime() < nNextTime)
        return;
    bool fFirst = (nNextTime == 0);
    nNextTime = GetTime() + GetRand(30 * 60);
    if (fFirst)
        return;

    // Only do it if there's been a new block since last time
    static int64 nLastTime;
    if (nTimeBestReceived < nLastTime)
        return;
    nLastTime = GetTime();

    // Rebroadcast any of our txes that aren't in a block yet
    printf("ResendWalletTransactions()\n");
    {
        LOCK(cs_wallet);
        // Sort them in chronological order
        multimap mapSorted;
        BOOST_FOREACH(PAIRTYPE(const uint256, CWalletTx)& item, mapWallet)
        {
            CWalletTx& wtx = item.second;
            // Don't rebroadcast until it's had plenty of time that
            // it should have gotten in already by now.
            if (nTimeBestReceived - (int64)wtx.nTimeReceived > 5 * 60)
                mapSorted.insert(make_pair(wtx.nTimeReceived, &wtx));
        }
        BOOST_FOREACH(PAIRTYPE(const unsigned int, CWalletTx*)& item, mapSorted)
        {
            CWalletTx& wtx = *item.second;
            wtx.RelayWalletTransaction();
        }
    }
}

full member
Activity: 220
Merit: 100
January 24, 2013, 10:30:03 AM
#3
You could use Blockchain.info's Broadcast Transaction feature to re-broadcast your transaction.

https://blockchain.info/pushtx


Regards
BitcoinOxygen

nice! Thanks!
sr. member
Activity: 336
Merit: 250
January 22, 2013, 05:00:53 AM
#2
You could use Blockchain.info's Broadcast Transaction feature to re-broadcast your transaction.

https://blockchain.info/pushtx


Regards
BitcoinOxygen
full member
Activity: 220
Merit: 100
January 13, 2013, 07:20:30 PM
#1
So im using Multibit for my wallet.. and I have sent a small amount of BTC to another address.. 0.013 to be exact. Its been a couple days now and theres been zero confirmations and it says it hasnt been seen by the network. If I try and view the transaction on blockchain.info, it doesnt seem to exist on the network at all. Anyone know of a way to rebroadcast the transaction? Not much BTC at all so its not really a big deal, but little bit annoying to always have the "available to spend" thing showing next to my balance.
Jump to: