ont-relayer

command module
v0.0.0-...-04a071c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

README

Ont Relayer

Ont Relayer is an important character of Poly cross-chain interactive protocol which is responsible for relaying cross-chain transaction from and to Ontology.

Build From Source

Prerequisites

  • Golang version 1.14 or later

Build

git clone https://github.com/polynetwork/ont-relayer.git
cd ont-relayer
go build -o ont-relayer main.go

After building the source code successfully, you should see the executable program ont-relayer.

Run Relayer

Before you can run the relayer you will need to create a wallet file of PolyNetwork. After creation, you need to register it as a Relayer to Poly net and get consensus nodes approving your registeration. And then you can send transaction to Poly net and start relaying.

Before running, you need feed the configuration file config.json.

{
  "AliaJsonRpcAddress":"http://ip:20336", // poly node
  "SideJsonRpcAddress":"http://ontology:20336", // your ontology node
  "SideChainID": 3, // ontology chain id
  "AliaWalletFile": "./wallet1.dat", // poly wallet
  "SideWalletFile": "./wallet2.dat", // ontology wallet
  "DBPath": "boltdb", // DB path
  "ScanInterval": 1, // interval for scanning chains
  "RetryInterval": 1, // interval for retrying sending transactions
  "GasPrice":500, // gas price for ontology
  "GasLimit":200000, // gas limit for ontology
  "SideToAlliForceSyncHeight": 0, // start scanning height of ontology
  "AlliToSideForceSyncHeight": 0 // start scanning height of Poly
}

Now, you can start relayer as follow:

./ont-relayer --ontpwd pwd  --alliapwd pwd

Flag ontpwd is the password for your ontology wallet and alliapwd is the password for your polly wallet. Relayer will generate logs under ./Log and check relayer status by view log file.

Documentation

Overview

  • Copyright (C) 2018 The ontology Authors
  • This file is part of The ontology library. *
  • The ontology is free software: you can redistribute it and/or modify
  • it under the terms of the GNU Lesser General Public License as published by
  • the Free Software Foundation, either version 3 of the License, or
  • (at your option) any later version. *
  • The ontology is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  • GNU Lesser General Public License for more details. *
  • You should have received a copy of the GNU Lesser General Public License
  • along with The ontology. If not, see <http://www.gnu.org/licenses/>.

* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library. * * The poly network is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The poly network is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public License * along with The poly network . If not, see <http://www.gnu.org/licenses/>.

Directories

Path Synopsis
* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
common use fot ontology-tool * Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
common use fot ontology-tool * Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.
* Copyright (C) 2020 The poly network Authors * This file is part of The poly network library.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL