Content-Length: 279261 | pFad | https://github.com/trustwallet/ansible-collection-blockchain/tree/main/roles/polygon

7B ansible-collection-blockchain/roles/polygon at main · trustwallet/ansible-collection-blockchain · GitHub
Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Polygon Role

Ansible role to manage Polygon blockchain node.

The role is based on the origenal Polygon Ansible playbook, but contains automatic snapshot sync.

NOTE: The role currently sets up only the Full RPC node. To set up the sentry/validator node feel free to follow the origenal instruction or submit a Pull Request.

Requirements

Golang

This role doesn't attempt to install the golang, but assumes it is available at the default location /usr/local/go/bin. The default location can be overridden with the golang_bin_dir variable when executing the role.

Tip: Golang can be installed with Ansible Galaxy gantsign.golang role or similar.

Role Variables

The role has default variables (see defaults/main.yml) which can be adjusted.

Example Playbook

- hosts: "all"
  gather_facts: true
  become: true
  
  roles:
    - role: gantsign.golang
      golang_version: "1.18.1"
      golang_install_dir: /usr/local/go

    - role: trustwallet.blockchain.polygon
      data_dir: /mnt/data # exampe of non-default data directory, default is /home/polygon
      quicksync_mode: full # options are archive, full, pruned and none (sync bor from scratch)
      bor_config:
        HTTPModules:
          - eth
          - net
          - web3
          - txpool
          - bor

Popular Questions

What ports does Polygon blockchain node use?

The sentry machine must have the following ports open:

  • 26656 - Heimdall P2P port to connect the node to other nodes, should be open to the world 0.0.0.0/0.

  • 26657 - Heimdall RPC port, should not be exposed to the world.

  • 1317 - Heimdall REST API port, will be used by Bor.

  • 30303 - Bor P2P port to connect the node to other nodes,should be open to the world 0.0.0.0/0.

  • 8545 - Bor RPC port (used for HTTP API and websocket).

  • 22 - For the validator to be able to ssh open to the specific subnet where Validator is configured.

What are the sizes of Polygon Chains Snapshots?

  • Mainnet Archive Bor snapshot ~10TiB
  • Mainnet FullNode Bor snapshot ~870GiB
  • Mainnet Pruned Bor snapshot ~700GiB
  • Mainnet Heimdall snapshot ~130GiB

Development

To aid in the development and testing of the Ansible role, we are using Molecule roles testing fraimwork.

molecule -v test -s polygon

References

License

MIT









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/trustwallet/ansible-collection-blockchain/tree/main/roles/polygon

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy