Bitcoin Forum
June 21, 2024, 06:53:12 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 »
481  Bitcoin / Bitcoin Discussion / Re: Limit number of coins in circulation limited by the 64 bit storage? on: February 27, 2019, 12:22:15 PM
The Bitcoin wallet cannot hold more than 22 Billions. After that it goes in negative.
That's my experience when doing an altcoin.

Of course for Bitcoin this will never happen, but when doing an altcoin this has to be taken in account.

Transaction limits are 22,518,000 coins due to the 52 bits representation internally. Thanks to Cryddit for this precious answer (in pv)
482  Alternate cryptocurrencies / Mining (Altcoins) / Re: Mining a block c++ code on: January 03, 2019, 08:32:37 AM
Thanks for the answer, at least 1 answer to that post lol, I was waiting desperately that some Legendary gurus come to help, but no luck!

Actually, Bitcoin Core 0.17.0.1 (latest at the time I am writing) has a lot of security checks, that are basically blocking any altcoin to be developed from their source code without removing them.

I understand that Bitcoin needs to be secured, but adding a "if (nheight>somevalue) {" when they are adding these security checks would help newbies to get into this code in a shorter time.

Some would say, if you cannot find out, then you are not good enough to maintain a coin, I got these kind of answers from people who are supposed to have a hi-IQ in these forums. Amazing.

So now the way to overcome the fact that there is no internal mining code (since version 0.14) is to use a pool and stratum.

I have fixed my problem by installing Yiimp (there are install scripts for each version of Ubuntu, latest is here: https://github.com/xavatar/yiimp_install_scrypt_ubuntu18.04 )

Once you have installed Yiimp, you can use ccminer to premine or just run the blockchain because without mining the blockchain is dead.

You need to comment all the timing/headers/Tips security tests  otherwise your nodes will ban your mining wallet, or just comment the ban system as it is not working for new coins...and that's it.

No documentation about these kind of issues in any "make your own altcoin in 10 min" posts of course. All these tutorials are deprecated for Bitcoin 0.17.x
483  Alternate cryptocurrencies / Mining (Altcoins) / Re: Regarding pools based on YIIMP/Yaamp fork on: December 27, 2018, 06:01:25 AM
I was bored one day and decided to browse around the pool setting files and found this option:
Code:
define('YAAMP_FEES_EXCHANGE', 2);

Basically, for pools that does the auto-exchange feature, the pool owner can set any exchange fee's they want. Some pool owners are more transparent and disclose it but I've seen some where they don't mention it at all.

So just wanted to let people know that there is also a backend exchange fee that goes into place on top of the pool mining fee.

Thanks for this info
484  Bitcoin / Project Development / Old Bitcoin source code archive (with dependanciess?) on: December 06, 2018, 07:51:25 AM
I have been looking for all the source releases of Bitcoin and I am surprised that there is not one place to have them all.
With time they alse becomes nearly impossible to compile without the dependencies pre-compiled too.

I know that http://www.bitcointrading.com/forum/bitcoin-clients/original-bitcoin-source-code-archives/
had some, but this website is giving back an error.

Sourceforge has deleted all the work posted there when it moved to Github.

Github has version 0.11 up to latest (0.17.0.1 at the moment) but the dependencies are almost impossible to get for the old versions, they would not compile without errors with the current depends/compiler versions.

Nakamoto institute has pre versions until 0.13 https://satoshi.nakamotoinstitute.org/code/

But where are the version in between? And are there version WITH the dependencies so that they can be modified for learning and compiled?

If you get some, I will host them permanently on a domain and guarantee that they will be still here as long as I am alive.

The idea would be to have as many as possible version, ready to be compiled (with pre-compiled dependencies) on windows, Linux, MAC... as many as possible.

Today, I cannot find any old version that would be included with dependencies and easy to compile.
485  Bitcoin / Development & Technical Discussion / Re: Bitcoin transaction versus bitcoin mining on: December 06, 2018, 04:14:41 AM
Thanks for your answers, things are more clear now  Grin Grin

The blockchain will continue to grow forever, only the mining reward is decreasing.
Does this means that if no more Bitcoins are generated, the blocks are still created at the same speed (2016/10 min average) and the blockchain still running with the same number of transaction maximum possible / day?

Yes, assuming there aren't any technology (which can solve scaling problem) applied to Bitcoin.

Also does this means that Bitcoin can continue to work without miners, just using these blocks automatically generated every 10 min?

No, miners is still needed. Additionally, they still get reward from transaction fee from transaction which included on blocks they mine.

Blocks and Bitcoins are not the same thing I understand. Blocks can host transactions, or mining rewards, that are a special kind of transaction. The max number of transaction is constant, but the bitcoin creation is halved every 4 years.

Am I right?

Yes, block can host/store transaction. In fact, all transaction must stored/included in blocks.
Yes, block must have coinbase transaction, which is transaction about mining reward for the miner/pool.
No, maximum transaction amount on blocks depends on each transaction size.
Yes, bitcoin creation mining reward is halved every 4 years.
486  Bitcoin / Development & Technical Discussion / Re: Bitcoin transaction versus bitcoin mining on: December 06, 2018, 03:40:57 AM
Thanks for all these answers. To resume...

The blockchain will continue to grow forever, only the mining reward is decreasing.
Does this means that if no more Bitcoins are generated, the blocks are still created at the same speed (2016/10 min average) and the blockchain still running with the same number of transaction maximum possible / day?

Also does this means that Bitcoin can continue to work without miners, just using these blocks automatically generated every 10 min? I guess not, because the miners are creating the blocks right? Is there a possibility that blocks can be not used (at the early stages for example)?

Blocks and Bitcoins are not the same thing I understand. Blocks are hosting transactions, or mining rewards, that are a special kind of transaction. The max number of transaction is constant, but the bitcoin creation is halved every 4 years.

Am I right?



You clearly need to learn more about Bitcoin

Transaction are stored in a block... but the number of blocks created is lowered every 4 years.

You meant block mining reward, block time interval is still same (even though actually it's 0.6 minutes faster)

The number of transactions is increasing because of the popularity of Bitcoin.

How can Bitcoin will scale in the future if the number of blocks are lower, and the number of transactions is increasing, there must be a breaking point where it will not be possible to mine enough to satisfy the incoming number of transactions?

What limits bitcoin scaling is Bitcoin's block size/weight and there's almost no correlation between scaling and mining reward. But there are multiple technology to solve/reduce the problem such as LN and MuSig Schnorr

Another question with the same idea, at the early stage of Bitcoin, when there were not enough transactions to fill these blocks, many blocks must have been generated, but empty. Does this mean that a large part of the blockchain is filled by empty blocks or blocks that are not totally used?

Yes, earlier block isn't full, but still used/generated as each block must have at least one transaction (which is coinbase transaction). But no need to worry about this as each block don't reserve 1MB storage space.
487  Bitcoin / Development & Technical Discussion / Bitcoin transaction versus bitcoin mining on: December 06, 2018, 03:04:13 AM
Transaction are stored in a block... but the number of blocks created is lowered every 4 years.
The number of transactions is increasing because of the popularity of Bitcoin.

How can Bitcoin will scale in the future if the number of blocks are lower, and the number of transactions is increasing, there must be a breaking point where it will not be possible to mine enough to satisfy the incoming number of transactions?

Another question with the same idea, at the early stage of Bitcoin, when there were not enough transactions to fill these blocks, many blocks must have been generated, but empty. Does this mean that a large part of the blockchain is filled by empty blocks or blocks that are not totally used?

What about the optimization of this blockchain?
488  Alternate cryptocurrencies / Mining (Altcoins) / Mining a block c++ code on: December 05, 2018, 01:25:18 PM
I know it will not mine anything and it is not the idea, but I would like to know if anyone had made a mining block function.
It is for testing how the blockchain is working, not to mine bitcoin.

I would like to have something equivalent to this program written in Python, but as a function that could be run from the chainparams.cpp initialisation for example.
The idea is that with such a function, it would be possible to mine the first blocks of a new blockchain, or mine any type of algorithm, since it would run inside the wallet at the initialisation.
If no one did it already I will do it myself but if it already exists, why re-create the wheel?

Here is the code in python that I have found.

https://gist.githubusercontent.com/shirriff/cd5c66da6ba21a96bb26/raw/85a75b2fc2457f9e8bf5c148fde98b5ddd2094c3/mine.py

Code:
import hashlib, struct
 
ver = 2
prev_block = "000000000000000117c80378b8da0e33559b5997f2ad55e2f7d18ec1975b9717"
mrkl_root = "871714dcbae6c8193a2bb9b2a69fe1c0440399f38d94b3a0f1b447275a29978a"
time_ = 0x53058b35 # 2014-02-20 04:57:25
bits = 0x19015f53
 
# https://en.bitcoin.it/wiki/Difficulty
exp = bits >> 24
mant = bits & 0xffffff
target_hexstr = '%064x' % (mant * (1<<(8*(exp - 3))))
target_str = target_hexstr.decode('hex')
 
nonce = 0
while nonce < 0x100000000:
    header = ( struct.pack("<L", ver) + prev_block.decode('hex')[::-1] +
          mrkl_root.decode('hex')[::-1] + struct.pack("<LLL", time_, bits, nonce))
    hash = hashlib.sha256(hashlib.sha256(header).digest()).digest()
    print nonce, hash[::-1].encode('hex')
    if hash[::-1] < target_str:
        print 'success'
        break
    nonce += 1
489  Alternate cryptocurrencies / Altcoin Discussion / Re: How to make an altcoin. on: December 03, 2018, 06:01:15 AM
Did you solved your problem
Let us know


490  Alternate cryptocurrencies / Pools (Altcoins) / Mining my own coin... help needed on: November 27, 2018, 04:07:06 PM
There are some Mining guru here and I am stuck in the development of my coin, I request some help to get my coin started.

I am using ccminer to mine my own coin with Yiimp. I have setup everything and everything seems to work except that I get a lot of errors and it won't mine.

My coin is virgin, that mean it has never been mined or had any transaction. I have 4 peer connected, I have set the difficulty to 1, my coin is a fork of Bitcoin Core 0.17.0.1, RPC port is 1790, main port is 1789

Mining address was created like this:

Code:
 ./bitcoin-cli getnewaddress
39EW2oTxKPySHFHfpSr6tQTskxeTYoDqAY


Here are the errors from ccminer
Code:
[2018-11-27 23:17:45] Starting on stratum+tcp://pool.kryptofranc.net:3333
[2018-11-27 23:17:45] NVML GPU monitoring enabled.
[2018-11-27 23:17:45] NVAPI GPU monitoring enabled.
[2018-11-27 23:17:45] 1 miner thread started, using 'sha256d' algorithm.
[2018-11-27 23:17:45] Stratum authentication failed
[2018-11-27 23:17:45] ...retry after 30 seconds
[2018-11-27 23:18:16] Stratum authentication failed
[2018-11-27 23:18:16] ...retry after 30 seconds
[2018-11-27 23:18:47] Stratum authentication failed
[2018-11-27 23:18:47] ...retry after 30 seconds

Here are the error from stratum:

Code:
oot@Ubuntu-1804-bionic-64-minimal /var/stratum # ./run.sh sha
23:17:28: 2018-11-27 starting stratum for sha256 on pool.kryptofranc.net:3333
23:17:29: connecting to coind KYF
23:17:29: Kryptofranc wallet 39EW2oTxKPySHFHfpSr6tQTskxeTYoDqAY is not mine.
23:17:29: ERROR: rpc_do_call: 127.0.0.1:1790 500
23:17:29: ERROR getaccountaddress Kryptofranc
23:17:29: ERROR: rpc_do_call: 127.0.0.1:1790 500
23:17:29: Kryptofranc error getblocktemplate result
2018-11-27 23:17:47 [125.27.131.165] 39EW2oTxKPySHFHfpSr6tQTskxeTYoDqAY, sha256, bad mining address 39EW2oTxKPySHFHfpSr6tQTskxeTYoDqAY
23:17:51: ERROR: rpc_do_call: 127.0.0.1:1790 500
23:17:51: Kryptofranc error getblocktemplate result
23:18:12: connecting to coind KYF
23:18:12: Kryptofranc wallet 39EW2oTxKPySHFHfpSr6tQTskxeTYoDqAY is not mine.
23:18:12: ERROR: rpc_do_call: 127.0.0.1:1790 500
23:18:12: ERROR getaccountaddress Kryptofranc
23:18:12: ERROR: rpc_do_call: 127.0.0.1:1790 500
23:18:12: Kryptofranc error getblocktemplate result


Here are the debug from the daemon

Code:
2018-11-27T16:00:14Z Kryptofranc Core version v0.17.0.1-7bb890f5c (release build)
2018-11-27T16:00:14Z InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-11-27T16:00:14Z Validating signatures for all blocks.
2018-11-27T16:00:14Z Setting nMinimumChainWork=0000000000000000000000000000000000000000000000000000000000000000
2018-11-27T16:00:14Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2018-11-27T16:00:14Z Using RdRand as an additional entropy source
2018-11-27T16:00:14Z Default data directory /root/.kryptofranc
2018-11-27T16:00:14Z Using data directory /root/.kryptofranc
2018-11-27T16:00:14Z Using config file /root/.kryptofranc/kryptofranc.conf
2018-11-27T16:00:14Z Using at most 1 automatic connections (1024 file descriptors available)
2018-11-27T16:00:14Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2018-11-27T16:00:14Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2018-11-27T16:00:14Z Using 8 threads for script verification
2018-11-27T16:00:14Z scheduler thread start
2018-11-27T16:00:14Z Allowing HTTP connections from: 127.0.0.0/8 ::1/128 127.0.0.1/32
2018-11-27T16:00:14Z libevent: event_add: event: 0x55f57bd839a0 (fd 8), EV_READ    call 0x7ff330a32980
2018-11-27T16:00:14Z libevent: Epoll ADD(1) on fd 8 okay. Old events were 0; read change was 1 (add); write change was 0 (none); close change was 0 (none)
2018-11-27T16:00:14Z Binding RPC on address :: port 1790
2018-11-27T16:00:14Z libevent: event_add: event: 0x55f57bd84698 (fd 9), EV_READ    call 0x7ff330a400d0
2018-11-27T16:00:14Z libevent: Epoll ADD(1) on fd 9 okay. Old events were 0; read change was 1 (add); write change was 0 (none); close change was 0 (none)
2018-11-27T16:00:14Z libevent: Bound to port 1790 - Awaiting connections ...
2018-11-27T16:00:14Z Binding RPC on address 0.0.0.0 port 1790
2018-11-27T16:00:14Z Binding RPC on address 0.0.0.0 port 1790 failed.
2018-11-27T16:00:14Z Initialized HTTP server
2018-11-27T16:00:14Z HTTP: creating work queue of depth 16
2018-11-27T16:00:14Z Starting RPC
2018-11-27T16:00:14Z Starting HTTP RPC server
2018-11-27T16:00:14Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
2018-11-27T16:00:14Z Registering HTTP handler for / (exactmatch 1)
2018-11-27T16:00:14Z Registering HTTP handler for /wallet/ (exactmatch 0)
2018-11-27T16:00:14Z Starting HTTP server
2018-11-27T16:00:14Z HTTP: starting 1 worker threads
2018-11-27T16:00:14Z Entering http event loop
2018-11-27T16:00:14Z Using wallet directory /root/.kryptofranc/wallets
2018-11-27T16:00:14Z init message: Verifying wallet(s)...
2018-11-27T16:00:14Z Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2018-11-27T16:00:14Z Using wallet wallet.dat
2018-11-27T16:00:14Z BerkeleyEnvironment::Open: LogDir=/root/.kryptofranc/wallets/database ErrorFile=/root/.kryptofranc/wallets/db.log
2018-11-27T16:00:14Z net: setting try another outbound peer=false
2018-11-27T16:00:14Z Cache configuration:
2018-11-27T16:00:14Z * Using 2.0MiB for block index database
2018-11-27T16:00:14Z * Using 8.0MiB for chain state database
2018-11-27T16:00:14Z * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2018-11-27T16:00:14Z init message: Loading block index...
2018-11-27T16:00:14Z LevelDB using max_open_files=1000 (default=1000)
2018-11-27T16:00:14Z Opening LevelDB in /root/.kryptofranc/blocks/index
2018-11-27T16:00:14Z leveldb: Recovering log #41
2018-11-27T16:00:14Z leveldb: Level-0 table #44: started
2018-11-27T16:00:14Z leveldb: Level-0 table #44: 207 bytes OK
2018-11-27T16:00:14Z leveldb: Delete type=3 #39
2018-11-27T16:00:14Z leveldb: Delete type=0 #41
2018-11-27T16:00:14Z Opened LevelDB successfully
2018-11-27T16:00:14Z Using obfuscation key for /root/.kryptofranc/blocks/index: 0000000000000000
2018-11-27T16:00:14Z LoadBlockIndexDB: last block file = 0
2018-11-27T16:00:14Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=1, size=310, heights=0...0, time=2018-11-05...2018-11-05)
2018-11-27T16:00:14Z Checking all blk files are present...
2018-11-27T16:00:14Z LevelDB using max_open_files=1000 (default=1000)
2018-11-27T16:00:14Z Opening LevelDB in /root/.kryptofranc/chainstate
2018-11-27T16:00:14Z leveldb: Recovering log #41
2018-11-27T16:00:14Z leveldb: Level-0 table #44: started
2018-11-27T16:00:14Z leveldb: Level-0 table #44: 597 bytes OK
2018-11-27T16:00:15Z leveldb: Delete type=3 #39
2018-11-27T16:00:15Z leveldb: Delete type=0 #41
2018-11-27T16:00:15Z Opened LevelDB successfully
2018-11-27T16:00:15Z Using obfuscation key for /root/.kryptofranc/chainstate: c96c16ccc3f16742
2018-11-27T16:00:15Z Loaded best chain: hashBestChain=0000000080f4f927283ede64c9f58eb8cc381cd0292e3e339862f2aef8f91465 height=0 date=2018-11-05T02:34:02Z progress=1.000000
2018-11-27T16:00:15Z init message: Rewinding blocks...
2018-11-27T16:00:15Z WriteBatch memory usage: db=index, before=0.0MiB, after=0.0MiB
2018-11-27T16:00:15Z Writing final batch of 0.00 MiB
2018-11-27T16:00:15Z WriteBatch memory usage: db=chainstate, before=0.0MiB, after=0.0MiB
2018-11-27T16:00:15Z Committed 0 changed transaction outputs (out of 0) to coin database...
2018-11-27T16:00:15Z init message: Verifying blocks...
2018-11-27T16:00:15Z  block index             340ms
2018-11-27T16:00:15Z Reading estimates: 190 buckets counting confirms up to 48 blocks
2018-11-27T16:00:15Z Reading estimates: 190 buckets counting confirms up to 12 blocks
2018-11-27T16:00:15Z Reading estimates: 190 buckets counting confirms up to 1008 blocks
2018-11-27T16:00:15Z init message: Loading wallet...
2018-11-27T16:00:15Z [default wallet] nFileVersion = 170001
2018-11-27T16:00:15Z [default wallet] Keys: 2003 plaintext, 0 encrypted, 2003 w/ metadata, 2003 total. Unknown wallet records: 1
2018-11-27T16:00:15Z [default wallet] Wallet completed loading in             102ms
2018-11-27T16:00:15Z [default wallet] setKeyPool.size() = 2000
2018-11-27T16:00:15Z [default wallet] mapWallet.size() = 0
2018-11-27T16:00:15Z [default wallet] mapAddressBook.size() = 2
2018-11-27T16:00:15Z mapBlockIndex.size() = 1
2018-11-27T16:00:15Z nBestHeight = 0
2018-11-27T16:00:15Z libevent: event_add: event: 0x55f57c876400 (fd 24), EV_READ    call 0x7ff330a32980
2018-11-27T16:00:15Z libevent: Epoll ADD(1) on fd 24 okay. Old events were 0; read change was 1 (add); write change was 0 (none); close change was 0 (none)
2018-11-27T16:00:15Z Imported mempool transactions from disk: 0 succeeded, 0 failed, 0 expired, 0 already there
2018-11-27T16:00:15Z torcontrol thread start
2018-11-27T16:00:15Z AddLocal(95.216.7.106:1789,1)
2018-11-27T16:00:15Z libevent: event_add: event: 0x7ff2f0001080 (fd -1), EV_READ    call 0x7ff330a31d40
2018-11-27T16:00:15Z Discover: IPv4 enp2s0: 95.216.7.106
2018-11-27T16:00:15Z libevent: event_add: event: 0x7ff2f0001100 (fd -1),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:15Z AddLocal([2a01:4f9:2a:795::2]:1789,1)
2018-11-27T16:00:15Z Discover: IPv6 enp2s0: 2a01:4f9:2a:795::2
2018-11-27T16:00:15Z Bound to [::]:1789
2018-11-27T16:00:15Z libevent: event_del: 0x7ff2f0001080 (fd -1), callback 0x7ff330a31d40
2018-11-27T16:00:15Z Bound to 0.0.0.0:1789
2018-11-27T16:00:15Z libevent: event_del: 0x7ff2f0001100 (fd -1), callback 0x7ff330a31920
2018-11-27T16:00:15Z init message: Loading P2P addresses...
2018-11-27T16:00:15Z libevent: event_add: event: 0x7ff2f0001080 (fd 25), EV_READ    call 0x7ff330a31d40
2018-11-27T16:00:15Z libevent: Epoll ADD(1) on fd 25 okay. Old events were 0; read change was 1 (add); write change was 0 (none); close change was 0 (none)
2018-11-27T16:00:15Z libevent: event_add: event: 0x7ff2f0001100 (fd 25),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:15Z libevent: Epoll MOD(5) on fd 25 okay. Old events were 2; read change was 0 (none); write change was 1 (add); close change was 0 (none)
2018-11-27T16:00:15Z libevent: event_add: event: 0x7ff2f0001100 (fd 25),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:15Z libevent: epoll_dispatch: epoll_wait reports 1
2018-11-27T16:00:15Z libevent: event_active: 0x7ff2f0001100 (fd 25), res 4, callback 0x7ff330a31920
2018-11-27T16:00:15Z libevent: event_active: 0x7ff2f0001080 (fd 25), res 2, callback 0x7ff330a31d40
2018-11-27T16:00:15Z libevent: event_process_active: event: 0x7ff2f0001100,  EV_WRITE  call 0x7ff330a31920
2018-11-27T16:00:15Z libevent: event_del: 0x7ff2f0001100 (fd 25), callback 0x7ff330a31920
2018-11-27T16:00:15Z libevent: Epoll MOD(1) on fd 25 okay. Old events were 6; read change was 0 (none); write change was 2 (del); close change was 0 (none)
2018-11-27T16:00:15Z libevent: event_del: 0x7ff2f0001080 (fd 25), callback 0x7ff330a31d40
2018-11-27T16:00:15Z libevent: Epoll DEL(1) on fd 25 okay. Old events were 2; read change was 2 (del); write change was 0 (none); close change was 0 (none)
2018-11-27T16:00:15Z tor: Error connecting to Tor control socket
2018-11-27T16:00:15Z tor: Not connected to Tor control port 127.0.0.1:9051, trying to reconnect
2018-11-27T16:00:15Z libevent: event_add: event: 0x7ff2f0000fa0 (fd -1),    EV_TIMEOUT call 0x55f57a03ca70
2018-11-27T16:00:15Z libevent: event_add: event 0x7ff2f0000fa0, timeout in 1 seconds 0 useconds, call 0x55f57a03ca70
2018-11-27T16:00:15Z Loaded 5 addresses from peers.dat  0ms
2018-11-27T16:00:15Z libevent: event_callback_finalize_many_: 3 events finalizing
2018-11-27T16:00:15Z init message: Loading banlist...
2018-11-27T16:00:15Z libevent: event_del: 0x7ff2f0001080 (fd 25), callback 0x7ff330a31d40
2018-11-27T16:00:15Z libevent: event_del: 0x7ff2f0001100 (fd 25), callback 0x7ff330a31920
2018-11-27T16:00:15Z libevent: event_process_active: event: 0x7ff2f0001100,  EV_WRITE  call 0x7ff330a2db20
2018-11-27T16:00:15Z Loaded 0 banned node ips/subnets from banlist.dat  0ms
2018-11-27T16:00:15Z init message: Starting network threads...
2018-11-27T16:00:15Z libevent: timeout_next: event: 0x7ff2f0000fa0, in 1 seconds, 0 useconds
2018-11-27T16:00:15Z net thread start
2018-11-27T16:00:15Z dnsseed thread start
2018-11-27T16:00:15Z addcon thread start
2018-11-27T16:00:15Z init message: Done loading
2018-11-27T16:00:15Z msghand thread start
2018-11-27T16:00:15Z opencon thread start
2018-11-27T16:00:16Z libevent: epoll_dispatch: epoll_wait reports 0
2018-11-27T16:00:16Z libevent: event_del: 0x7ff2f0000fa0 (fd -1), callback 0x55f57a03ca70
2018-11-27T16:00:16Z libevent: timeout_process: event: 0x7ff2f0000fa0, call 0x55f57a03ca70
2018-11-27T16:00:16Z libevent: event_active: 0x7ff2f0000fa0 (fd -1), res 1, callback 0x55f57a03ca70
2018-11-27T16:00:16Z libevent: event_del: 0x7ff2f0000fa0 (fd -1), callback 0x55f57a03ca70
2018-11-27T16:00:16Z libevent: event_process_active: event: 0x7ff2f0000fa0,    call 0x55f57a03ca70
2018-11-27T16:00:16Z libevent: event_add: event: 0x7ff2f0001e40 (fd -1), EV_READ    call 0x7ff330a31d40
2018-11-27T16:00:16Z libevent: event_add: event: 0x7ff2f0001ec0 (fd -1),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:16Z libevent: event_del: 0x7ff2f0001e40 (fd -1), callback 0x7ff330a31d40
2018-11-27T16:00:16Z libevent: event_del: 0x7ff2f0001ec0 (fd -1), callback 0x7ff330a31920
2018-11-27T16:00:16Z libevent: event_add: event: 0x7ff2f0001e40 (fd 18), EV_READ    call 0x7ff330a31d40
2018-11-27T16:00:16Z libevent: Epoll ADD(1) on fd 18 okay. Old events were 0; read change was 1 (add); write change was 0 (none); close change was 0 (none)
2018-11-27T16:00:16Z libevent: event_add: event: 0x7ff2f0001ec0 (fd 18),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:16Z libevent: Epoll MOD(5) on fd 18 okay. Old events were 2; read change was 0 (none); write change was 1 (add); close change was 0 (none)
2018-11-27T16:00:16Z libevent: event_add: event: 0x7ff2f0001ec0 (fd 18),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:16Z libevent: epoll_dispatch: epoll_wait reports 1
2018-11-27T16:00:16Z libevent: event_active: 0x7ff2f0001ec0 (fd 18), res 4, callback 0x7ff330a31920
2018-11-27T16:00:16Z libevent: event_active: 0x7ff2f0001e40 (fd 18), res 2, callback 0x7ff330a31d40
2018-11-27T16:00:16Z libevent: event_process_active: event: 0x7ff2f0001ec0,  EV_WRITE  call 0x7ff330a31920
2018-11-27T16:00:16Z libevent: event_del: 0x7ff2f0001ec0 (fd 18), callback 0x7ff330a31920
2018-11-27T16:00:16Z libevent: Epoll MOD(1) on fd 18 okay. Old events were 6; read change was 0 (none); write change was 2 (del); close change was 0 (none)
2018-11-27T16:00:16Z libevent: event_del: 0x7ff2f0001e40 (fd 18), callback 0x7ff330a31d40
2018-11-27T16:00:16Z libevent: Epoll DEL(1) on fd 18 okay. Old events were 2; read change was 2 (del); write change was 0 (none); close change was 0 (none)
2018-11-27T16:00:16Z tor: Error connecting to Tor control socket
2018-11-27T16:00:16Z tor: Not connected to Tor control port 127.0.0.1:9051, trying to reconnect
2018-11-27T16:00:16Z libevent: event_add: event: 0x7ff2f0000fa0 (fd -1),    EV_TIMEOUT call 0x55f57a03ca70
2018-11-27T16:00:16Z libevent: event_add: event 0x7ff2f0000fa0, timeout in 1 seconds 500000 useconds, call 0x55f57a03ca70
2018-11-27T16:00:16Z trying connection 178.63.85.204:1789 lastseen=0.5hrs
2018-11-27T16:00:16Z libevent: event_callback_finalize_many_: 3 events finalizing
2018-11-27T16:00:16Z libevent: event_del: 0x7ff2f0001e40 (fd 18), callback 0x7ff330a31d40
2018-11-27T16:00:16Z libevent: event_del: 0x7ff2f0001ec0 (fd 18), callback 0x7ff330a31920
2018-11-27T16:00:16Z libevent: event_process_active: event: 0x7ff2f0001ec0,  EV_WRITE  call 0x7ff330a2db20
2018-11-27T16:00:16Z libevent: timeout_next: event: 0x7ff2f0000fa0, in 1 seconds, 500000 useconds
2018-11-27T16:00:16Z Added connection peer=0
2018-11-27T16:00:16Z sending version (104 bytes) peer=0
2018-11-27T16:00:16Z send version message: version 70015, blocks=0, us=[::]:0, peer=0
2018-11-27T16:00:16Z received: version (104 bytes) peer=0
2018-11-27T16:00:16Z sending verack (0 bytes) peer=0
2018-11-27T16:00:16Z sending getaddr (0 bytes) peer=0
2018-11-27T16:00:16Z receive version message: /Satoshi:0.17.0.1/: version 70015, blocks=0, us=95.216.7.106:51084, peer=0
2018-11-27T16:00:16Z added time data, samples 2, offset +0 (+0 minutes)
2018-11-27T16:00:16Z received: verack (0 bytes) peer=0
2018-11-27T16:00:16Z New outbound peer connected: version: 70015, blocks=0, peer=0
2018-11-27T16:00:16Z sending sendheaders (0 bytes) peer=0
2018-11-27T16:00:16Z sending sendcmpct (9 bytes) peer=0
2018-11-27T16:00:16Z sending sendcmpct (9 bytes) peer=0
2018-11-27T16:00:16Z sending ping (8 bytes) peer=0
2018-11-27T16:00:16Z initial getheaders (0) to peer=0 (startheight:0)
2018-11-27T16:00:16Z sending getheaders (69 bytes) peer=0
2018-11-27T16:00:16Z sending feefilter (8 bytes) peer=0
2018-11-27T16:00:16Z received: sendheaders (0 bytes) peer=0
2018-11-27T16:00:16Z received: sendcmpct (9 bytes) peer=0
2018-11-27T16:00:16Z received: sendcmpct (9 bytes) peer=0
2018-11-27T16:00:16Z received: ping (8 bytes) peer=0
2018-11-27T16:00:16Z sending pong (8 bytes) peer=0
2018-11-27T16:00:16Z received: feefilter (8 bytes) peer=0
2018-11-27T16:00:16Z received: feefilter of 0.00001000 KYF/kB from peer=0
2018-11-27T16:00:16Z received: pong (8 bytes) peer=0
2018-11-27T16:00:17Z libevent: epoll_dispatch: epoll_wait reports 0
2018-11-27T16:00:17Z libevent: event_del: 0x7ff2f0000fa0 (fd -1), callback 0x55f57a03ca70
2018-11-27T16:00:17Z libevent: timeout_process: event: 0x7ff2f0000fa0, call 0x55f57a03ca70
2018-11-27T16:00:17Z libevent: event_active: 0x7ff2f0000fa0 (fd -1), res 1, callback 0x55f57a03ca70
2018-11-27T16:00:17Z libevent: event_del: 0x7ff2f0000fa0 (fd -1), callback 0x55f57a03ca70
2018-11-27T16:00:17Z libevent: event_process_active: event: 0x7ff2f0000fa0,    call 0x55f57a03ca70
2018-11-27T16:00:17Z libevent: event_add: event: 0x7ff2f00021d0 (fd -1), EV_READ    call 0x7ff330a31d40
2018-11-27T16:00:17Z libevent: event_add: event: 0x7ff2f0002250 (fd -1),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:17Z libevent: event_del: 0x7ff2f00021d0 (fd -1), callback 0x7ff330a31d40
2018-11-27T16:00:17Z libevent: event_del: 0x7ff2f0002250 (fd -1), callback 0x7ff330a31920
2018-11-27T16:00:17Z libevent: event_add: event: 0x7ff2f00021d0 (fd 18), EV_READ    call 0x7ff330a31d40
2018-11-27T16:00:17Z libevent: Epoll ADD(1) on fd 18 okay. Old events were 0; read change was 1 (add); write change was 0 (none); close change was 0 (none)
2018-11-27T16:00:17Z libevent: event_add: event: 0x7ff2f0002250 (fd 18),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:17Z libevent: Epoll MOD(5) on fd 18 okay. Old events were 2; read change was 0 (none); write change was 1 (add); close change was 0 (none)
2018-11-27T16:00:17Z libevent: event_add: event: 0x7ff2f0002250 (fd 18),  EV_WRITE   call 0x7ff330a31920
2018-11-27T16:00:17Z libevent: epoll_dispatch: epoll_wait reports 1
2018-11-27T16:00:17Z libevent: event_active: 0x7ff2f0002250 (fd 18), res 4, callback 0x7ff330a31920
2018-11-27T16:00:17Z libevent: event_active: 0x7ff2f00021d0 (fd 18), res 2, callback 0x7ff330a31d40
2018-11-27T16:00:17Z libevent: event_process_active: event: 0x7ff2f0002250,  EV_WRITE  call 0x7ff330a31920
2018-11-27T16:00:17Z libevent: event_del: 0x7ff2f0002250 (fd 18), callback 0x7ff330a31920
2018-11-27T16:00:17Z libevent: Epoll MOD(1) on fd 18 okay. Old events were 6; read change was 0 (none); write change was 2 (del); close change was 0 (none)
2018-11-27T16:00:17Z libevent: event_del: 0x7ff2f00021d0 (fd 18), callback 0x7ff330a31d40
2018-11-27T16:00:17Z libevent: Epoll DEL(1) on fd 18 okay. Old events were 2; read change was 2 (del); write change was 0 (none); close change was 0 (none)

Sorry for the long debug log, there is a lot more... anyone can help me figure out what is the problem?
491  Bitcoin / Bitcoin Discussion / Mining my Bitcoin fork is now impossible? on: November 17, 2018, 01:21:53 PM
So  the Bitcoin core have removed cpumining, and gpumining and now most RPC mining options are not working.

What about the ones who are doing a fork to create an altcoin? Why not keeping these features for the ones who are creating altcoins from Bitcoin.

Bitcoin has been forked +20000 times, and now what if you cannot mine your fork?

Because people are not going to install your empty wallet in a pool.

Or you need to create a pool just to mine your first transactions?!

If I do a fork of Bitcoin, how I can mine my new coin now that Bitcoin core has dumped these part of the code?
492  Alternate cryptocurrencies / Altcoin Discussion / Re: *** Complete Guide on How to Create a New Alt Coin – Update 2018 *** on: November 16, 2018, 06:55:11 PM
Not sure to understand your English.
But apparently latest Bitcoin 0.17 cannot solo mine, and is incompatible with all cpuminer flavors, because the RPC commands have been removed.
That's not nice for the Altcoins

they already hardcode it. that why many not know . there something about new bitcoin that bip you need know that what must do. on mean time prefer used rebase code~

Here sample of transaction receive by mining. did you look off the debug.log?
493  Alternate cryptocurrencies / Mining (Altcoins) / Re: How to mine my altcoin? on: November 13, 2018, 03:15:00 PM
How your answer can help anyone? Is this forum to blame people for asking questions?

If you don't know how to mine your own coin, just don't do your own coin... no future.
https://media1.tenor.com/images/d4451712edd3ee80b7c22f9da8126544/tenor.gif
494  Alternate cryptocurrencies / Altcoin Discussion / Re: *** Complete Guide on How to Create a New Alt Coin – Update 2018 *** on: November 12, 2018, 05:11:08 PM
getwalletinfo give no key, wallet name is empty... I have created my own blockchain so there is no transaction...
I have seen many people having the same problem and no solution.
generate or generatetoaddress is not doing anything.

However if I do getnewaddress I get a new address, but this address is not saved,  or not visible in the getwalletinfo

Code:

00:05:48

getwalletinfo


00:05:48

{
  "walletname": "",
  "walletversion": 169900,
  "balance": 0.00000000,
  "unconfirmed_balance": 0.00000000,
  "immature_balance": 0.00000000,
  "txcount": 0,
  "keypoololdest": 1541959024,
  "keypoolsize": 1000,
  "keypoolsize_hd_internal": 1000,
  "paytxfee": 0.00000000,
  "hdseedid": "33122e4958e02b7e0205a34476a13c1f45edd135",
  "hdmasterkeyid": "33122e4958e02b7e0205a34476a13c1f45edd135",
  "private_keys_enabled": true
}


I have an issue with this parameter? --coinbase-addr XQg3PmNxX9oEbxsymqtQHir6dkPpVPTJ6P

How do you get an address if you never mined any block? My wallet is loading and never syncing, I have no address.

Do I miss something?

Note: I have done my own genesis using genesis.cpp as instructed.

on cli you need type : getwalletinfo there will info wallet active. but you know today is hard code. you need rebase code for easy~
495  Alternate cryptocurrencies / Altcoin Discussion / Re: *** Complete Guide on How to Create a New Alt Coin – Update 2018 *** on: November 11, 2018, 03:41:09 PM
I have an issue with this parameter? --coinbase-addr XQg3PmNxX9oEbxsymqtQHir6dkPpVPTJ6P

How do you get an address if you never mined any block? My wallet is loading and never syncing, I have no address.

Do I miss something?

Note: I have done my own genesis using genesis.cpp as instructed.
496  Alternate cryptocurrencies / Altcoin Discussion / Altcoin wallets do not sync on: November 11, 2018, 01:26:38 PM
I have my altcoin working with 3 seeding servers... all are connected and there is no error message. I have done my genesis but NO TRANSACTION has been done yet. It is a virgin coin if you like.

I can run the QT wallet fine, and everything seems ok I see the nodes listed in the Debugging->pairs and the network debugging panel is showing activity.

However, the wallets in all servers are loading but never sync, which do not allows me to have an address and mine.

I have a progress at 0%, Number of blocks = 0 and the last block time is the time I have done the genesis.

Any help is welcome at this point.

Thanks
497  Alternate cryptocurrencies / Altcoin Discussion / I am changing the Subsidy algorithm, any feedback? on: November 07, 2018, 04:06:19 PM
I am doing an altcoin:
I want to have an halving every year (210000/4 block or so) and I want to distribute 28028* COIN to the miners with a halving of 1.61
Also I pre-mine 100 Billions
Am I doing anything wrong?

Programmers, let me know your feedback  Shocked

Code:
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
        CAmount nSubsidy=0;
double halvings = nHeight / consensusParams.nSubsidyHalvingInterval; // no need to be an int with new algo

if(nHeight  == 3)  // block 3 is pre-mining
{
CAmount nSubsidy = 100000000000 * COIN;  // premine 100 billions
halvings=1.0;
}else {
CAmount nSubsidy = 28028 * COIN;
int years = (int) nHeight/52560; // 210000/4
halvings = (years/1.618033988750);
}

if (halvings<=1.0) halvings=1.0;
nSubsidy =   nSubsidy / halvings;

    return nSubsidy;
}

498  Bitcoin / Bitcoin Discussion / Re: Limit number of coins in circulation limited by the 64 bit storage? on: October 23, 2018, 02:00:06 PM
satoshi liked maths and the Fibonacci sequence

its well documented
ill show you just 2 numbers found in the Fibonacci sequence and leave you to see how often they appear

21
144
1

Amazing, thanks!
499  Bitcoin / Development & Technical Discussion / Re: Bitcoin issued per year formula on: October 23, 2018, 09:37:51 AM
Ok I was wong on the number of minutes in a year (525600)

My mistake, now it makes sense!

Thanks
500  Bitcoin / Development & Technical Discussion / Bitcoin issued per year formula on: October 23, 2018, 09:19:12 AM
If Bitcoin delivered 50 coins every 10 minutes (600 seconds) the first year, then it should have delivered 50 x (1577000/10) = 7885000 Bitcoin the first year.

But I cannot see this number in any charts like in this one for example where it is said that the first years were added 2625000 bitcoins.

https://en.bitcoin.it/wiki/Controlled_supply

So what is the exact formulas to determine how many bitcoins are issued / year (before halfing)
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!