input-output-hk / cardano-sl

Cryptographic currency implementing Ouroboros PoS protocol
Apache License 2.0
3.76k stars 632 forks source link

Cardano API #2150

Open visualaram opened 6 years ago

visualaram commented 6 years ago

We have been trying to integrate our app to cardano, but run into issues when running the node.

On my terminal when I run 'stack exec -- cardano-node --system-start 1511917071' I get:

Reporting error with reason "Worker/plugin with logger name LoggerName {loggerName = "node"} failed with exception: server.crt: openBinaryFile: does not exist (No such file or directory)" dnsSubscriptionWorker: no relays found for index 1 Can't get current slot, because slotting data is outdated. Last known current epoch = 0 Slotting data: EpochSlottingData {esdSlotDuration = 7000ms, esdStartDiff = 0} self: enqueue instruction EnqueueAll {enqNodeType = NodeRelay, enqMaxAhead = MaxAhead 1, enqPrecedence = PHigh} failed to enqueue message MsgRequestBlockHeaders Nothing to forwarding sets [[]]

We were unable to find much documentation/guides on deployment, common errors and also on the API usage,

I'm running it on windows 10 64bits, using the cardano-node that downloaded along with daedalus wallet. Maybe there is an easier approach to interact with the Cardano network.

Any help is much appreciated.

Thanks!

gromakovsky commented 6 years ago

Do you want to connect to mainnet (actual Cardano network) or just run nodes locally for testing? I assume the former. You can use cardano-sl/docs/how-to/connect-to-cluster.md instruction. However, AFAIU, you are on windows, so there is nix. There is the following script which works for me on linux without nix: http://sprunge.us/GUIW You can make something equivalent on windows. It should be used from the root of the repository.