Categories
Bitcoin Cryptocurrency Mastering Development

Mempool count is too low

I’m running a full node. I wanted to get a list of all mempool txs (using getrawmempool false), and found that it only came back with around 3000, where all the block explorers are currently showing around 12000. I understand that mempools will differ between nodes, but this seems like a very big difference. Can […]

Categories
Bitcoin Cryptocurrency Mastering Development

Where is the block reward system coded in Bitcoin core?

I’m taking a look at Bitcoin core and am looking for where the TX is effectively “generated” and send out to an address. I’ve found the nSubsidy block reward, but I’m currently looking for where the transaction is sent out and recorded on the blockchain. If I don’t understand something right, please correct me, otherwise, […]

Categories
Bitcoin Cryptocurrency Mastering Development

Sent old ERC-20 THETA tokens to mainnet wallets

I recently sent my old Theta token to Binance as well as the Theta Wallet online (wallet.thetatoken.org), and have yet to see a balance in either wallet despite confirmations. I realize now that I sent the old tokens that hadn’t been swapped to mainnet wallets. Is there any hope of recovering my old tokens and […]

Categories
Bitcoin Cryptocurrency Mastering Development

Online BTC wallet implemention with bitcoin-core

I have written a php code to register users and create wallet for them on bitcoin-core full node.My question is how can i manage users wallets.if i use loadwallet to load USER A wallet and get address and other managements what happen if USER B call it on same time?. how can i seperates users!

Categories
Bitcoin Cryptocurrency Mastering Development

convert private key to bitcoin address

I have private key like this 5JYJWrRd7sbqEzL9KR9dYTGrxyLqZEhPtnCtcvhC5t8ZvWgS9iC how to convert to bicoin address using python or php? example bitcoin address 18V7u8YNHKwG944TCkzYYj32hb6fdFPvQf

Categories
Bitcoin Cryptocurrency Mastering Development

What is the probability of having forks in PoW given different network size (miners count)?

Given a network of k miners, what is the impact of k on the probability of having forks in Bitcoin or any PoW-based blockchain? It is clear for me that a network with fewer miners will have less probability of having a fork than a network with higher number of miners. Is there any mathematical […]

Categories
Bitcoin Cryptocurrency Mastering Development

creating macd script

this was a script I found for trading with macd. It is taken from trality.com: @schedule(interval=”1h”, symbol=”BTCUSDT”) def handler(state, data): macd_ind = data.macd(12,26,9).last if macd_ind is None: return signal = macd_ind[‘macd_signal’] macd = macd_ind[‘macd’] has_position = has_open_position(data.symbol, truncated=True) balance_base = float(query_balance_free(data.base)) balance_quoted = float(query_balance_free(data.quoted)) buy_amount = balance_quoted * 0.80 / data.close_last if macd > signal […]

Categories
Bitcoin Cryptocurrency Mastering Development

Getting rid of timestamps?

Bitcoin is supposed to be a clock on it’s own right so it always felt sketchy to me that outside time is referenced. Could bitcoin be aware of it’s own block interval through something like staleblock rate? Could that allow it to do difficulty adjustment without reference to outside time?

Categories
Bitcoin Cryptocurrency Mastering Development

How can I calculate the possible number of correctly formatted version one minikeys?

I’m doing a small research project collecting information on minikeys. In that research process I’ve come across a couple of questions that I have been unable to answer in relation to the assumed keyspace of the version one minikey. The said mini key, was used primarily by Casascius Series 1 coins, and consisted of the […]

Categories
Bitcoin Cryptocurrency Mastering Development

Rewriting the blockchain?

The main bitcoin blockchain (the chain that miners choose to work on) is the chain with the most proof of work (“heaviest” chain). Currently, the cumulative proof of work on the bitcoin main blockchain is about 2^94 hashes. I have a few questions here: (1) How is the cumulative proof of work on a bitcoin […]