Search content
Sort by

Showing 13 of 13 results by DarkArrow
Post
Topic
Board Altcoin Discussion
Re: How to make an altcoin.
by
DarkArrow
on 24/05/2021, 03:38:46 UTC
Cryddit, can you please update MIDAS to make it work with the latest Litecoin code? Thanks.
Post
Topic
Board Announcements (Altcoins)
Re: [ANN][PDR][LAUNCHED] PlanetDollar | Fair Social Distribution | OpenSSL patched
by
DarkArrow
on 22/05/2021, 22:05:11 UTC
May I ask how you generated the genesis block? Can't find anything for Scrypt-N (nscrypt).
Post
Topic
Board Altcoin Discussion
Topic OP
Generic genesis block miner
by
DarkArrow
on 22/05/2021, 16:07:47 UTC
Hi, I'm trying to create the genesis block for an altcoin that has a different hashing algorithm (can't use GenesisH0). I found a snippet (see below) and tested it on the litecoin code, but it doesn't work, the hashes are wrong and the litecoind crashes with a segfault. Is there a better generic solution that works for any altcoin no matter what hashing algo it uses? Preferably something like that gist I pasted, that can be done withing chainparams.cpp. Thanks.

https://gist.github.com/moh53n/de6b2b07002d5deea4aad05fa8fd059a
Code:
        /**
        * This code is from "http://dillingers.com/blog/2015/04/18/how-to-make-an-altcoin" with some changes for newer versions of Bitcoin.
        * Use this for mine the genesis block for a new coin.
        * Put this before "consensus.hashGenesisBlock = genesis.GetHash();"
        */
        /////////GENESIS MINING///////////////
        /*
        printf("Genesis mining started\n");
        genesis.nNonce = 0;
        consensus.hashGenesisBlock = uint256S("0x001");
        for(genesis.nNonce == 0; UintToArith256(genesis.GetHash()) > UintToArith256(consensus.powLimit); genesis.nNonce++){  }
        printf("New genesis merkle root: %s\n", genesis.hashMerkleRoot.ToString().c_str());
        printf("New genesis nonce: %lu\n", (unsigned long)genesis.nNonce);
        printf("New genesis hash: %s\n", genesis.GetHash().ToString().c_str());
        printf("Now replace the values, reComment the Genesis mining code and reCompile. \n");
        */
        //////////////////////////////////////
Post
Topic
Board Altcoin Discussion
Re: *** Complete Guide on How to Create a New Alt Coin – Update 2019 ***
by
DarkArrow
on 22/05/2021, 02:33:01 UTC
Code:
chainparams.cpp:27:5: error: ‘arith_uint256’ was not declared in this scope
errors for more than just line 27. What I'm doing to put your code into chainparams.cpp, is copy and pasting https://raw.githubusercontent.com/NicolasChoukroun/altcoin-genesis/master/creategenesis.cpp under all of the #include in chainparams.cpp. There is probably something I'm doing wrong here, and I'm way too new to C++ to know what I'm doing wrong. Any help would be greatly appreciated!

You need to add this before the mining function
Code:
#include <arith_uint256.h>
Post
Topic
Board Announcements (Altcoins)
Re: Vertcoin [VTC][ANN] Segwit Activated | ASIC Resistant Decentralized GPU Mining
by
DarkArrow
on 20/05/2021, 17:41:50 UTC
Which tool are you guys using to create the genesis block?
Post
Topic
Board Announcements (Altcoins)
Re: [ANN] BITGESELL - Store of value (Burn rate is 90% of tx fees) #realstoreofvalue
by
DarkArrow
on 19/05/2021, 02:40:22 UTC
Hello, you mentioned that:
Quote
Block Reward = nFees*0.1 + GetBlockSubsidy()    // Burn rate is 90% of tx fees

I tried something similar and it doesn't work.
Quote
CAmount blockReward = nFees / 2 + GetBlockSubsidy(pindex->nHeight, chainparams.GetConsensus());

I can't mine anything with that modification, it gives an error in the cli:
Quote
CreateNewBlock: TestBlockValidity failed: bad-cb-amount (code 16)

And on the daemon side, the error is:
Quote
ERROR: ConnectBlock(): coinbase pays too much (actual=10000022500 vs limit=10000011250)

Is there something else that needs to be modified to make the fee burning work?
Post
Topic
Board Altcoin Discussion
Re: Transactions stuck despite near-empty mempool
by
DarkArrow
on 18/05/2021, 22:25:23 UTC
Apparently the cpuminer fork I was using was buggy and didn't handle segwit transactions properly. Everything is fine using the original pooler's cpuminer (minerd).
Post
Topic
Board Development & Technical Discussion
Topic OP
Locking up premine for a period of time or number of blocks
by
DarkArrow
on 18/05/2021, 21:59:53 UTC
Hi, I would like to lock up a premine for a certain period of time, or for a number of blocks. I've been reading about CLTV, but I would like to do it directly when the premine occurs, i.e. in validation.cpp. Is this possible? Can someone share a C++ snippet to do it? I'm not a C++ expert. Thanks.
Post
Topic
Board Development & Technical Discussion
Topic OP
Transactions stuck despite near-empty mempool
by
DarkArrow
on 16/05/2021, 17:15:30 UTC
Hello, I hope this is the correct place to ask this question. I'm using the latest Litecoin Core v0.18.1 to create my own coin. So far in my testings, I stumbled on the dreaded stuck transactions problem. The mempool is nearly empty:


Code:
getmempoolinfo

{
  "size": 4,
  "bytes": 1080,
  "usage": 4368,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000
}


As you can see, the minfee is 0.00001000, but when I send coins with a fee of 0.00083000, for example, it gets stuck forever, consequently locking up the funds and the change address (cause it gets stuck with 0 confirmations).

Code:
Status: 0/unconfirmed, in memory pool
Date: 16/05/2021 12:36
To: SQfKWw5DJ4MakrByMAM26177Uqf9udm5XE
Debit: -10.00000000 LTC
Transaction fee: -0.00083000 LTC
Net amount: -10.00083000 LTC
Transaction ID: 6f8302298238126f96be3a3d21fd96f645f89347ad95a089c18208cbc43dedb2
Transaction total size: 247 bytes
Transaction virtual size: 166 bytes
Output index: 0

Sending coins with a 0.001 fee (or more) goes through without a problem.

This is annoying, because legacy addresses (with the highest fees) are fine for transfers, but transfering from p2sh-segwit or bech32 always get stuck, because their calculated fees are lower than legacy.

Also, since the mempool isn't full at all and there's no network congestion, shouldn't those low fee transactions be processed promptly? At least that's what I understood from the documentation

Any help would be appreciated.

Post
Topic
Board Bitcoin Discussion
Re: Is electrum a theif?
by
DarkArrow
on 22/03/2021, 18:32:10 UTC
Bitcoin is not friendly for microtransactions because of the fees. Sure, you can try setting the lowest fees you can pay, but that will put your transaction at the bottom of the pool and it can take hours or days before it goes through (or be rejected).
Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
DarkArrow
on 22/03/2021, 18:22:58 UTC
I think one of the take home messages here might be that due to this difference in effort and other factors having to do with privacy and the fungiblity of Bitcoin in general:  do not reuse Bitcoin addresses.  Bitcoin addresses should be used exactly twice:  once to fund them and once to spend them - then never used again.
There's plenty of addresses with hundreds or even thousands of transactions on them, so what you're saying is that bitcoin isn't secure enough and those addresses are more at risk?
Post
Topic
Board Development & Technical Discussion
Re: Pollard's kangaroo ECDLP solver
by
DarkArrow
on 22/03/2021, 02:01:49 UTC
Would someone explain in simple terms what this kangaroo tool does exactly? Thanks.
Post
Topic
Board Development & Technical Discussion
Re: VanitySearch (Yet another address prefix finder)
by
DarkArrow
on 10/03/2021, 05:28:49 UTC
Real shame what happened to you. Rule #1 in crypto, never trust any website that generates keys or brainwallets for you, always do it offline. The world is full of scammers and they'll go through anything to steal people's funds.