By closing this message, you consent to our cookies on this device in accordance with our cookie policy unless you have disabled them.

Stack Exchange - Bitcoin

most recent 30 from bitcoin.stackexchange.com
  1. Is there any API for building own exchange web application for trading,purchasing bitcoin, creating bitcoin wallet and address.?

  2. I have a bitcoin-qt_0.7.2 wallet.dat file I salvaged from a drive. The drive was overwritten so the file is not complete. The wallet was encrypted and I have password.

    Since I can not use an incomplete file normally, I open it using hex editor to try to extract one private key. I see one public address listed in the pool 'name' data. I only used one receive address and that is the public address listed , and right after it is the encrypted private key, I think. I am able to retrieve what I believe to be the encrypted private key (from the pool 'name' data using hex editor software) for the receive address. Now , my problem is how to decrypt it manually or using python tool.

    I have used 'pywallet --recover' to recover all the unused private keys (in hex they are the fields that start with the word 'ckey!' ) from the drive, but those do not include any receive address which would have funds so it seems almost useless in my case. In the hex file, I see that the encrypted private key is in the 'names' field after the receiving public address. The problem is how to decrypt that because none of the python bitcoin tools I have used are able to recognize it and decrypt it for use.?

  3. I'm curious whether stratum protocol can also be used in mining softwares intended for Altcoins like XMR. I'm wondering if how do applications like XMRig gets the information they need on a pool to start working with it, I tried to do it (get infos from the pool) using socket and tried to send stratum commands but don't know how to send it i socket. Based on my knowledge the miner POSTS a request on the pool, by request what I understand is sending stratum commands, but don't know how to implement it in c++, any links or blogs where I could learn how to do this in c++?

  4. I have one confusion regarding my balance limit will over.

    My configuration is below:

    /** The maximum allowed size for a serialized block, in bytes (network rule) */
    static const unsigned int MAX_BLOCK_SIZE = 1000000;                      // 1000KB block hard limit
    /** Obsolete: maximum size for mined blocks */
    static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/4;         // 250KB  block soft limit
    /** Default for -blockmaxsize, maximum size for mined blocks **/
    static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 250000;
    /** Default for -blockprioritysize, maximum space for zero/low-fee transactions **/
    static const unsigned int DEFAULT_BLOCK_PRIORITY_SIZE = 17000;
    /** The maximum size for transactions we're willing to relay/mine */
    static const unsigned int MAX_STANDARD_TX_SIZE = 100000;
    /** The maximum allowed number of signature check operations in a block (network rule) */
    static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
    /** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
    static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 25;
    /** The maximum size of a blk?????.dat file (since 0.8) */
    static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB
    /** The pre-allocation chunk size for blk?????.dat files (since 0.8) */
    static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000; // 16 MiB
    /** The pre-allocation chunk size for rev?????.dat files (since 0.8) */
    static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000; // 1 MiB
    /** Fake height value used in CCoins to signify they are only in the memory pool (since 0.8) */
    static const unsigned int MEMPOOL_HEIGHT = 0x7FFFFFFF;
    /** Dust Soft Limit, allowed with additional fee per output */
    static const int64 DUST_SOFT_LIMIT = 100000; // 0.001 MIND
    /** Dust Hard Limit, ignored as wallet inputs (mininput default) */
    static const int64 DUST_HARD_LIMIT = 1000;   // 0.00001 MIND mininput
    /** No amount larger than this (in satoshi) is valid */
    static const int64 MAX_MONEY = 350000 * COIN;
    inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
    /** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
    static const int COINBASE_MATURITY = 100;
    /** Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. */
    static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov  5 00:53:20 1985 UTC
    /** Maximum number of script-checking threads allowed */
    static const int MAX_SCRIPTCHECK_THREADS = 16;
    ifdef USE_UPNP
    static const int fHaveUPnP = true;
    else
    static const int fHaveUPnP = false;
    endif
    

    My MAX_MONEY = 350000 is this If it will be complete while mining then what will happen? Need to create more currency or need to compile again after finish all coins?

    Please let me know about it? It is very important for me.

  5. I'm reading about the miners and it always says that the miners are rewarded when a block is discovered.

    What is that? What they discover are new bitcoin pieces, isn't it? When they find a new bitcoin they are rewarded with that value entirely or not?