commerceblock / federation

Federation client for Ocean signing nodes.
MIT License
4 stars 4 forks source link

How to get transactions from bitcoin chain? zmq or rpc? #11

Closed worldmars closed 5 years ago

nkostoulas commented 5 years ago

What are you trying to do?

worldmars commented 5 years ago

yes, but No instructions for running

nkostoulas commented 5 years ago

Federation works with any bitcoin-based rpc. You only need to provide rpc connectivity details.

worldmars commented 5 years ago

--rpconnect --rpcport: rpc --rpcuser: rpc username --rpcpassword: rpc password?

nkostoulas commented 5 years ago

Yep

worldmars commented 5 years ago

There are questions about the interpretation of the parameters in the readme? --rpconnect: rpc host of Ocean node --rpcport: rpc port of Ocean node --rpcuser: rpc username --rpcpassword: rpc password --id: federation node id

nkostoulas commented 5 years ago

What questions?

worldmars commented 5 years ago

Is --rpconnect and --rpcpor Ocean node or bitcoin node?

nkostoulas commented 5 years ago

It's for an Ocean or Elements node, as it uses rpc calls specific to these that don't exist in bitcoin.

worldmars commented 5 years ago

Can you explain how the code of federation works?

nkostoulas commented 5 years ago

It's an application built to do federated block signing. For a given federation, of say X members, each node takes turns producing a block which it shares with the other nodes via zmq/Kafka, collects these signatures, combines them and produces the block. Each federation member runs an Ocean node and an instance of this application that connects to the node.

There's also added functionality to do federated asset inflation and to use HSMs but these are ignored by default.

worldmars commented 5 years ago

Does it not handle transactions that are locked to a federated address?

nkostoulas commented 5 years ago

How do you mean? There's currently no peg-in peg-out functionality in the federation.

worldmars commented 5 years ago

I mean about the functions of pegin and pegin-out. Is this function to be done later?

nkostoulas commented 5 years ago

Yep it is not being used yet.