Show Posts
|
Pages: [1]
|
hi everyone, i have made my own altcoin named bitcoin(in order to use bitcoin python p2pool code), i also create p2pool, when i start to run "python run_p2pool.py user1 letmein --bitcoind-p2p-port 10000", run cgminer and antminer U1, the terminal prints message: --- <exception caught here> --- File "/home/test/p2pool-13.4/p2pool/util/jsonrpc.py", line 85, in _handle result = yield method_meth(*list(preargs) + list(params)) File "/home/test/p2pool-13.4/p2pool/bitcoin/stratum.py", line 74, in rpc_submit return got_response(header, worker_name, coinb_nonce) File "/home/test/p2pool-13.4/p2pool/bitcoin/worker_interface.py", line 136, in <lambda> lambda header, user, coinbase_nonce: handler(header, user, pack.IntType(self._my_bits).pack(nonce) + coinbase_nonce), File "/home/test/p2pool-13.4/p2pool/work.py", line 389, in got_response share = get_share(header, last_txout_nonce) File "/home/test/p2pool-13.4/p2pool/data.py", line 213, in get_share merkle_link=bitcoin_data.calculate_merkle_link([None] + other_transaction_hashes, 0), File "/home/test/p2pool-13.4/p2pool/data.py", line 240, in __init__ raise ValueError('''bad coinbase size! %i bytes''' % (len(self.share_info['share_data']['coinbase']),)) exceptions.ValueError: bad coinbase size! 1 bytes; and bitcoind log file prints: "2377 2016-11-28 08:22:36 ERROR: AcceptBlock: bad-cb-length, Transaction check failed (tx hash 0b43ec 7a2b3922350d59fb0711fa5a25abed7e29d4d48c17d9b7315b302db972) (code 16) 2378 2016-11-28 08:22:36 ERROR: ProcessNewBlock: AcceptBlock FAILED" the bitcoin core code here: 1141 if (tx.IsCoinBase()) 1142 { 1143 if (tx.vin[0].scriptSig.size() < 2 || tx.vin[0].scriptSig.size() > 100) 1144 return state.DoS(100, false, REJECT_INVALID, "bad-cb-length"); 1145 } the value of 'self.share_info['share_data']['coinbase'])' is R, how to modify it ? thank you~ 
|
|
|
hi, i have create my own altcoin named testcoin, i want to mine testcoin by bfgminer.i have search some materials, but cannot find way to create mining pool, can you help me ? thanks.
|
|
|
Thanks for this nice tutorial. I downloaded AntiBitcoin wallet to try out solo mining for the first time. I have a few questions as well as need some help regarding this....
now extract BFGminer lets say to c:\ drive in a folder like c:\bfgminer\ Create a text file as the same location and put this inside: bfgminer -o localhost:11655 -u [b]XXXXXX[/b] -p [b]x[/b] --stratum-port=3333 pause
Name it start-pool.bat Do I have to write the same username and password from AntiBitcoin.conf file in place of XXXXXX and x?
so after you setup this exit the wallet and than run it again, your wallet now is running in server mode.
How do I know that my wallet is running in server mode? Will there be an indication to that? I mean, will my wallet's interface show something like "Running in server mode" on its status bar?
Will I need to enter same username and password again on my miner's web interface?
I tried to follow every step but I faced this error everytime!   I need some help regarding this error. hi, i have some questions, hope you can help me. thanks. 1)where download AntiBitcoin wallet? [i create my altcoin named testcoin, if i want to solo miner altcoin with bfgminer and antminer miner]. 2)your altcoin program is running on linux server or win pc?
|
|
|
hi, i meet some problems about solo miner. 1)i create my own altcoin named testcoin, i have run testcoind as daemon on RedHat server(ip, for example, is 121.204.2.45), testcoin configuration: 1 server=1 2 rpcuser=test 3 rpcpassword=test 4 daemon=1 5 rpcport=11655 6 rpcallowipo=* 7 gen=0 2)i install bfgminer on win pc(my pc computer ip is 192.168.3.12), i ping 121.204.2.45 is ok.i create start-miner.bat which runs bfgminer, configuration: bfgminer -o 121.204.2.45:11655 -u test -p test --stratum-port=3333 3)i use antminer R1, antminer web first pool: "121.204.2.45:3333" when i run start-miner.bat.i doesn't work, it notices: "pool 0 slow/down or url or credentials invalid. no servers were found that could be used to get work from. please check the details from the list below of the servers you have input. most likely you have input the wrong url, forgotten to add a port , or have not set up workers." questions: 1)how do i solve above problem? 2)or there is any way to create my altcoin wallet? thank you. https://bitcointalk.org/index.php?topic=1291032.0
|
|
|
Some people find it hard to solo mine altcoins using antminer such as S3, S4, C1, S5, S7 and others, generally I speak of miners which have Ethernet port or wifi and doesn't require to be connected to a PC to work, because they have their own rasberry pie or chip inside with CGminer or BFGminer. This tutorial should apply for any altcoin SHA256 and ASIC miner. I am writing this because I was trying to find a way to solo mine [ANTI] the first community maintained altcoin with no real owner or organization. And my contribution to mining is the following. You will need - BFGminer. - Your wallet running on pc. - You and the miner should be at the same network "both connected to the same router doesn't matter Wifi or lan". - a windows PC but if you use Linux or mac the only difference is the location of "altcoinname.conf" where altcoin name could be any altcoin. First of all know what RPC ports your wallet use, google "coin name RPC port" if you don't know, for ANTI it should be 11655. Now you will need to open your AppData it's located in C:\Users\YOURUSER\AppData\Roaming\AntiBitcoin this is ANTI example for other altcoins should be different in the last folder which is the altcoin name. Make a new text file and paste the following: server=1 rpcuser=XXXXX rpcpassword=x rpcport=11655 daemon=1 gen=0 Rename it to your altcoiname.conf should be named as the folder in my case AntiBitcoin.conf Replace XXXXX with some user name like user1 the password recommended to choose a hard one instead of the x, something like 16 letters and numbers capital and small just don't use dots special characters and stuff because I don't know what they might cause, for example PaSSW0rdStr0Ng is good for now. Replace RPC port with your wallet RPC port, as 11655 is for ANTI, you can have a custom port number if you want just remember that you will need it later, and it's recommended to use the one from altcoin specs just to not conflict. so after you setup this exit the wallet and than run it again, your wallet now is running in server mode Now you need to download BFGminer, we will use it as a stratum proxy, because your miner can't speak with RPC directly and solo mine, you need a proxy to translate between the wallet and the stratum based or http based miner. download BFGminer from here http://bfgminer.org/ or compile from source doesn't matter do what suites you. now extract BFGminer lets say to c:\ drive in a folder like c:\bfgminer\ Create a text file as the same location and put this inside: bfgminer -o localhost:11655 -u XXXXXX -p x --stratum-port=3333 pause
Name it start-pool.bat The above should work on all antminer but if you have a problem replace "stratum" with "http" is for compatibility. You need to replace the port 11655 with the port you choose in your altcoin.conf the port 3333 leave it it's the port you will connect to from your miner. now fire up the start-pool.bat you should see that everything is ready and no errors, it will display a speed of 0. now go to command line by running CMD and write "ipconfig", find your local ip address for example 192.168.1.4 Go inside your miner web interface and change the first pool to "192.168.1.4:3333" without the replace the IP with the one you found from ipconfig but keep the port to 3333 since we used it in the BFGminer file. save settings of your miner, and wait, you should see now that hash rate going up on the bfgminer window. Your wallet will have the coins when it mine, you don't need to use your address as username or anything, RPC will handle it with the wallet, you might also find a new address in your wallet with label BFGminer, that will hold your mined coins, but depend on wallet. I have tested this with ANTI wallet, so please backup your wallet.dat before you try, I know that many know this information but I share it because I didn't find it online, I had to learn it by my self, and therefore I don't want people to have to learn it all the way alone like I did. Feel free to add or fix on this tutorial, share and distribute as you wish, and if you want to be free join ANTI team, you can be the dev, the representative or be proud and tell everyone you own this coin, ANTI is the first community based altcoin, made by the community with no owner or central dev, we all work and contribute. Brought to you by ANTI - any skills are welcome, this is your coin http://www.antibitcoin.site/ hi, i have some questions about solo mine with antminer R1. i create my altcoin and run it as daemon on RedHat server(ip 192.168.1.1), i want to mine altcoin by antminer R1, i modify some configuration according to your tutorial. for example, my window pc ip is 192.189.32.1(antminer R1 and the RedHat server are not at the same network) i run bfgminer on window pc, start-pool.bat's configuration: bfgminer -o 192.168.1.1:11655 -u test -p test --stratum-port=3333 pause my altcoin configuration(ip 192.168.1.1): server=1 rpcuser=test rpcpassword=test daemon=1 rpcport=11655 rpcallowipo=192.189.32.1 gen=0 antminier web first poo: "192.168.1.1:3333" when i run start-pool.bat. it notices: "pool 0 slow/down or url or credentials invlid. no servers were found that could be used to get work from. please check the details from the list below of the servers you have input. most likely you have input the wrong url, forgotten to add a port , or have not set up workers." is there any incorrect step? you say "- Your wallet running on pc.", i have not running altcoin wallet because i can not create altcoin wallet, could you give some advices? thank you.
|
|
|
hi, i have create altcoin named "newcoin", i use altminer u3 to mine altcoin, when i install run cgminer, it notices that there is no server pools, so i install p2pool, from http://p2pool.in/. my altcoin conf info: server=1 rpcuser=hellotest rpcpassword=letmein dnsseed=0 port=20000 daemon=1 rpcport=40000 run p2pool: python run_p2pool.py, but it notices: 2016-11-02 17:38:56.427630 p2pool (version 16.0-4-gde1be30) 2016-11-02 17:38:56.427725 2016-11-02 17:38:56.427802 Testing bitcoind RPC connection to ' http://127.0.0.1:40000/' with username 'hellotest'... 2016-11-02 17:38:56.432074 > Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port! 2016-11-02 17:38:57.434888 > Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port! can you help me ? thank you.
|
|
|
Hello, i have question about nChainWork: The block index database gets loaded into memory when the node starts, in src/main.cpp LoadBlockIndexDB function, the code "pindex->nChainWork = (pindex->pprev ? pindex->pprev->nChainWork : 0) + GetBlockProof(*pindex);", why do this?
nChainWork noted:"Total amount of work (expected number of hashes) in the chain up to and including this block". here:https://en.bitcoin.it/wiki/Bitcoin_Core_0.11_(ch_6):_The_Blockchain
Thank you.
|
|
|
haha, i want to learn bitcoin core code, but cannot find some concrete or detailed material about module(eg, how does P2P work in Bitcoin Core)or data structure(eg, CBlockIndex, CMempool) I just wonder if there is any material about Bitcoin core code for references. Will you please share your thoughts here 
|
|
|
class "CBlockIndex" has one data memeber: nHeight, note:"//! height of the entry in the chain. The genesis block has height 0" it means the number of block in blockchain? such as genesis block's nHeight is 0, second block's nHeight is 1...?if so, when i run bitcoind program, i add one line code ""LogPrintf("%s\n", pindexNew->ToString()) "" in CBlockTreeDB's LoadBlockIndexGuts function, but in the debug.log file, i have not see nHeight=0 which CBlockIndex record has. when program starts to run, it reads block index data(or brief block header data) from disk?
|
|
|
Hi, My job is developing program, now i need do some Bitcoin Core research, such as P2P, BlockChain, POW and so on. I have clone Bitcoin Core code from GitHub to learn, but i come across difficulties, such as: when one node(N1) creates peer-two-peer relationship with another node(N2): 1)N1 send VERSION message(msg) to N2; 2)N2 reply VERACK msg and VERSION msg 3)N1 reply VERACK msg when N1 send INV msg to N2(question: N1 knows what hash value send?), what N2 need do before reply GETDATA or GETHEADERS msg? I refer to Bitcoin wiki and official site, but cannot find some useful materials, could you give me some suggestions?
Thank you.
|
|
|
Thank you. CTxWitness is for segwit. Specifically it is for the witnesses included in the segwit serialization. and it has a data member:const uint256 hash /** Memory only. */, it means if a transaction in mempool, it has this data member:hash? or if on disk, it has no data member:hash?
It means that that hash is kept in the memory and not on disk.
|
|
|
Bitcoin Core code defines class data type "CTransaction", i see it has a data member:CTxWitness, what dose CTxWitness use for? and it has a data member:const uint256 hash /** Memory only. */, it means if a transaction in mempool, it has this data member:hash? or if on disk, it has no data member:hash?
thank you.
|
|
|
Hi,all. i have a question about optional "maxorphantx", when a transaction arrives, full node will verify it and put it into mempool if valid, if count of transactions in mempool is up to maxorphantx value ,the code will "sweep out expired orphan pool entries" or "evict a random orphan". Is there any possibility that "such transaction" will be obsoleted when all full node' mempool's maxorphantx values arrives max? if it happens, the block cannot record "such transaction" because it not in all full node' mempool. Thank you.
|
|
|
hi,all. i work on mac os, i compile source code with "./configure --enable-debug", when use gdb attach bitcoind's pid , it shows: "warning: unhandled dyld version (15) 0x00007fffe026ac8a in ?? ()"
i break at 0x00007fffe026ac8a, it actually break "main" function? and it show "?? ()" ?? but i file bitcoind symbol tables, it does not work.
do you have such problems when develop program on mac os? thank you.
|
|
|
|