dr-test | Test helps you to generate random test data | Serialization library
kandi X-RAY | dr-test Summary
kandi X-RAY | dr-test Summary
Dr. Test helps you to generate random test data that satisfy your schema definitions
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run the schema .
- generateGeneratorMap generates map based on the provided records .
- GenerateAvro generates an avro file for given files .
- generateFunction generates a function for the given entity name .
- populateRouter adds handlers to the router .
- main is the entry point for testing
- getHandler is a wrapper around http . ResponseWriter .
- randomSimpleValue returns a random value
- Builds a random value based on field metadata
- ExtractFieldMetadata extracts the fields of a struct .
dr-test Key Features
dr-test Examples and Code Snippets
Community Discussions
Trending Discussions on dr-test
QUESTION
If you look at how this go-cardano-client is making it's handshake request payload:
https://github.com/gocardano/go-cardano-client/blob/master/shelley/handshake.go#L64
...ANSWER
Answered 2021-Mar-29 at 16:06Edit: You seem to assume that the the handshake from gocardano/go-cardano-client
and the one described in node.proto
somehow are related to the same implementation. Actually, I don't think they do.
The TCP-based handshake follows the Shelley protocol specs and sends a payload with the encoded versionTable
. The gRPC-based HandshakeRequest
instead is, as you also considered, just a nonce. There's nothing in the proto schema that hints to the Shelley protocol. The comments on the Nonce
field also say that quite explicitly: "Nonce for the server to authenticate its node ID with."
So it would be a bit strange to assume that this nonce and the versionTable
payload have anything in common at all.
Edit 2: In addition, it seems the "Jormungandr" rust node implementation does not support Shelley at all, so when you say you can't connect to the nodes in the relay topology, I think you shouldn't look for answers in the Jormungandr repository. Instead, I think the relays run the Haskell implementations of the Ouroboros network.
Now as for why you can't connect, the go-cardano
client panics on some unchecked type assertions, because after the QueryTip
Shelley message chainSyncBlocks.RequestNext
, the relay servers respond with a different mini-protocol altogether, transactionSubmission.msgRequestTxIds
as shown by running the client with TCP and tracing the messages:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dr-test
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page