Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Network is not gasless - but price-limit flag is not used #1206

Open
adaki2004 opened this issue Feb 7, 2023 · 5 comments
Open

Network is not gasless - but price-limit flag is not used #1206

adaki2004 opened this issue Feb 7, 2023 · 5 comments

Comments

@adaki2004
Copy link

As the name suggest, our private network would require gas for transactions but I haven't started the server with --price-limit flag.

Description

Please see the K8S configs below

Your environment

AWS EKS - K8S deployment

Steps to reproduce

{
    "apiVersion": "v1",
    "kind": "Pod",
   …
    "spec": {
        "containers": [
            {
                "args": [
                    "server",
                    "--data-dir",
                    "/data/data-1",
                    "--chain",
                    "/data/genesis.json",
                    "--grpc-address",
                    "0.0.0.0:9632",
                    "--libp2p",
                    "0.0.0.0:1478",
                    "--jsonrpc",
                    "0.0.0.0:8545",
                    "--prometheus",
                    "0.0.0.0:5001"
                ],
              ….
}

All the nodes (4) are defined the same way but with different data-X folder.

Expected behavior

There shall be no gas required for transactions.

Thanks !
Daniel

@laviniat1996
Copy link
Contributor

Hi @adaki2004,

Are you using PoA or PoS, BLS or ECDSA? And which version of Edge?

@laviniat1996
Copy link
Contributor

@adaki2004 Also, how did you make the transaction?

@laviniat1996 laviniat1996 self-assigned this Feb 8, 2023
@adaki2004
Copy link
Author

Hello @laviniat1996 !

Thanks for getting back to me.

  • I'm using the default PoA (see genesis generation below) and i think the BLS (shall be default, and in data/data-1/consensus folder i see validator-bls.key).
  • I'm using the 0xpolygon/polygon-edge:latest image in my Dockerfile
  • I tried to make 2 different transactions. I contract deployment - programmatically - via hardhat deploy and one via Metamask. Both required gas.

Genesis creation:

echo "Generating genesis file."
          cd /data && polygon-edge genesis \
            --dir "$GENESIS_PATH" \
            --consensus ibft \
            --ibft-validators-prefix-path data- \
            --premine=0x640845aB79A1AC6abE0B05aFC1dEe7f85a7DD8F5:1000000000000000000000000000 \
            --bootnode /dns/node-1/tcp/1478/p2p/$(echo $secrets | jq -r '.[0] | .node_id') \
            --bootnode /dns/node-2/tcp/1478/p2p/$(echo $secrets | jq -r '.[1] | .node_id')
          echo "Genesis file has been successfully generated"

@laviniat1996
Copy link
Contributor

Can you query the transaction made from metamask and add the output here, please?

@adaki2004
Copy link
Author

Hope this fits. (TXN receipt of a transfer of 10eth).

curl --location --request POST '10.12.1.77:8545' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "eth_getTransactionReceipt",
    "params": ["0x89eff0c5fcbcfb86e1ecc366f922db495850692db12cb7bd1ef9c4650c9373f4"]
}'
{"jsonrpc":"2.0","id":2,"result":{"root":"0x0000000000000000000000000000000000000000000000000000000000000000","cumulativeGasUsed":"0x5230","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","logs":[],"status":"0x1","transactionHash":"0x89eff0c5fcbcfb86e1ecc366f922db495850692db12cb7bd1ef9c4650c9373f4","transactionIndex":"0x0","blockHash":"0xf6fe4d07a3e2d6fc248ffebaf635ec6428aa2159ffcdcc14ec03e914c086f342","blockNumber":"0x29cda","gasUsed":"0x5230","contractAddress":null,"from":"0x640845aB79A1AC6abE0B05aFC1dEe7f85a7DD8F5","to":"0x1A6AE6bE547b23711B9E4A4BdB8ad6C8e7638760"}

@laviniat1996 laviniat1996 removed their assignment Feb 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants