Generate ID with non-zero transaction fee

Currently there are a large number of spam transactions with 1e-8 NKN txn fee. By default, new node will send Generate ID txn with 0 fee, which has lower priority than those spam transactions. To make your Generate ID having higher priority, you would need to set a non-zero txn fee. Basically you only need to do 2 things:

  1. Make sure your node’s wallet have 10 + txn fee NKN. For example, for 0.01 NKN txn fee, your node wallet need to have 10.01 NKN.
  2. Add a field RegisterIDTxnFee in your node’s config.json file, the unit is 1e-8 NKN. Also add RegisterIDReplaceTxPool if there are pending transactions in txpool already. For example, for 0.01 NKN txn fee, you should set it to 1000000:
"RegisterIDTxnFee": 1000000,
"RegisterIDReplaceTxPool": true

Then you can start your node and let it generate ID.

If your node wallet already has some pending transactions in txpool, and the first one in pool is not generate ID transaction, you might need to manually replace them. One way to do it is using https://wallet.nkn.org to send a transfer transaction with enough fee (but the transfer amount can be 0) and Replace pending transaction selected.

image

I sent 11 NKN :frowning: What do i need to do now!

Please do step 2 as Yilun wrote in the above post.

1 Like

Yep Found It
image

Did I do it wrong :frowning:

{
  "BeneficiaryAddr": "",
  "RegisterIDTxnFee": 100,
  "RegisterIDReplaceTxPool": true,
  "SeedList": [
    "http://mainnet-seed-0001.nkn.org:30003",
    "http://mainnet-seed-0002.nkn.org:30003",
    "http://mainnet-seed-0003.nkn.org:30003",
    "http://mainnet-seed-0004.nkn.org:30003",
    "http://mainnet-seed-0005.nkn.org:30003",
    "http://mainnet-seed-0006.nkn.org:30003",
    "http://mainnet-seed-0007.nkn.org:30003",
    "http://mainnet-seed-0008.nkn.org:30003",
    "http://mainnet-seed-0009.nkn.org:30003",
    "http://mainnet-seed-0010.nkn.org:30003",
    "http://mainnet-seed-0011.nkn.org:30003",
    "http://mainnet-seed-0012.nkn.org:30003",
    "http://mainnet-seed-0013.nkn.org:30003",
    "http://mainnet-seed-0014.nkn.org:30003",
    "http://mainnet-seed-0015.nkn.org:30003",
    "http://mainnet-seed-0016.nkn.org:30003",
    "http://mainnet-seed-0017.nkn.org:30003",
    "http://mainnet-seed-0018.nkn.org:30003",
    "http://mainnet-seed-0019.nkn.org:30003",
    "http://mainnet-seed-0020.nkn.org:30003",
    "http://mainnet-seed-0021.nkn.org:30003",
    "http://mainnet-seed-0022.nkn.org:30003",
    "http://mainnet-seed-0023.nkn.org:30003",
    "http://mainnet-seed-0024.nkn.org:30003",
    "http://mainnet-seed-0025.nkn.org:30003",
    "http://mainnet-seed-0026.nkn.org:30003",
    "http://mainnet-seed-0027.nkn.org:30003",
    "http://mainnet-seed-0028.nkn.org:30003",
    "http://mainnet-seed-0029.nkn.org:30003",
    "http://mainnet-seed-0030.nkn.org:30003",
    "http://mainnet-seed-0031.nkn.org:30003",
    "http://mainnet-seed-0032.nkn.org:30003",
    "http://mainnet-seed-0033.nkn.org:30003",
    "http://mainnet-seed-0034.nkn.org:30003",
    "http://mainnet-seed-0035.nkn.org:30003",
    "http://mainnet-seed-0036.nkn.org:30003",
    "http://mainnet-seed-0037.nkn.org:30003",
    "http://mainnet-seed-0038.nkn.org:30003",
    "http://mainnet-seed-0039.nkn.org:30003",
    "http://mainnet-seed-0040.nkn.org:30003",
    "http://mainnet-seed-0041.nkn.org:30003",
    "http://mainnet-seed-0042.nkn.org:30003",
    "http://mainnet-seed-0043.nkn.org:30003",
    "http://mainnet-seed-0044.nkn.org:30003"
  ],
  "GenesisBlockProposer": "a0309f8280ca86687a30ca86556113a253762e40eb884fc6063cad2b1ebd7de5"
}

I just tried the above fix on a brand new Digital Ocean 1-click NKN Commercial deployment, and it works. I do need to wait for a bit over an hour until the node id is generated.

I tried on azure! help

Am Stuck! help!


Am still stuck help

Hello. Help me please. I have 2 nodes and both are stuck on Generate ID. I paid through the NKNx service. Synchronization has not started for a day.

The information is presented below.

Снимок экрана (30) Снимок экрана (31) Снимок экрана (32)

Снимок экрана (33)

As you can see from the logs, you don’t have enough balance in your wallet. If you paid through nknx and are supposed to get mainnet tokens from them, you might want to contact nknx for help. nknx is made by community, so you should contact them directly.

Hi.
I have the same issue, I have founds in the node wallet, but it dosn´t generate ID.

image

2022/04/08 08:26:48.148885 [INFO ] GID 1, GetNonceByAddr got resp: {“id”:“1”,“jsonrpc”:“2.0”,“result”:{“currentHeight”:3865162,“nonce”:0,“nonceInTxPool”:1}} from http://mainnet-seed-0041.nkn.org:30003

2022/04/08 08:26:48.373951 [INFO ] GID 1, CreateID got resp: {“error”:{“code”:-45021,“data”:“duplicate transaction check failed”,“message”:“INTERNAL ERROR, can not append tx to txpool”},“id”:“1”,“jsonrpc”:“2.0”} from http://mainnet-seed-0041.nkn.org:30003

2022/04/08 08:26:48.374090 [WARN ] GID 1, create ID from http://mainnet-seed-0041.nkn.org:30003 error: CreateID(http://mainnet-seed-0041.nkn.org:30003) resp error: {“error”:{“code”:-45021,“data”:“duplicate transaction check failed”,“message”:“INTERNAL ERROR, can not append tx to txpool”},“id”:“1”,“jsonrpc”:“2.0”}
2022/04/08 08:26:48.374131 [WARN ] GID 1, Create ID error: create ID failed
2022/04/08 08:26:48.374171 [WARN ] GID 1, Failed to create ID. Make sure node’s wallet address has enough balance for generate ID fee, or use another wallet to generate ID for this node’s public key.

Hi,

How can I find the config file in the docker?
Do I need to transfer 10.01 NKN from beneficiary address to node address in order to create the chain ID?

The config file is typically in your docker volume you mapped to.
And yes, you need to transfer the token from beneficiary address to node wallet address to generate ID.