Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing against other supported ecosystem services, such as Dolos #35

Open
musik-c opened this issue Jul 9, 2023 · 6 comments
Open
Assignees

Comments

@musik-c
Copy link

musik-c commented Jul 9, 2023

No description provided.

@verbotenj
Copy link
Contributor

verbotenj commented Jul 22, 2024

Test wrong intersect from client (Different implementations)

cardano-node-api:local (gouroborus:v0.90.0)
cardano-node:8.9.4
https://github.com/utxorpc/go-sdk
network: preprod

followTip(ctx, client, "235f9a217b826276d6cdfbb05c11572a06aef092535b6df8c682d501af59c230", -1, nil)

Client logs:
Blockref: 0, 235f9a217b826276d6cdfbb05c11572a06aef092535b6df8c682d501af59c230
connecting to utxorpc host: http://localhost:9090
Connected to utxorpc host, following tip...
Stream ended with error: unknown: chain intersection not found

Expected: gRPC error codes

Got: unknown


Dolos: dolos-0.11.0
https://github.com/utxorpc/go-sdk
network: preprod

Client: logs

Blockref: 0, 235f9a217b826276d6cdfbb05c11572a06aef092535b6df8c682d501af59c230
connecting to utxorpc host: http://localhost:64235
Connected to utxorpc host, following tip...
Action: Apply
Block Slot: 0, Block Hash: 9ad7ff320c9cf74e0f5ee78d22a85ce42bb0a487d0506bf60cfb5a91ea4497d2
Action: Apply
Block Slot: 2, Block Hash: 1d031daf47281f69cd95ab929c269fd26b1434a56a5bbbd65b7afe85ef96b233
Action: Apply
Block Slot: 2163, Block Hash: 9972ffaee13b4afcf1a133434161ce25e8ecaf34b7a76e06b0c642125cf911a9
Action: Apply
Block Slot: 4325, Block Hash: f3d7cd6f93cb4c59b61b28ac974f4a4dccfc44a4c83c1998aad17bb6b7b03446

Expected response:
In this particular case, if the block doesn't exist in the chain, it should return an intersection not found

Got: Dolos started following current tip

@verbotenj
Copy link
Contributor

verbotenj commented Jul 28, 2024

Test Query: readParams()

Environment

  • Network: Preprod
  • Test Deployment: Dolos: dolos-0.11.0
  • Test Method: readParams()

Client Logs

canceled
stream error: stream ID 1; CANCEL; received from peer
[]

Server Logs

not yet implemented
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@verbotenj
Copy link
Contributor

Test Query: readUtxos()

Environment

  • Network: Preprod
  • Test Deployment: Dolos: dolos-0.11.0
  • Test Method: readUtxos(ctx, client, "71a7498f086d378ec5e558581286629b678be1dd65d5d4e2a5d634ba6fdf8299")

Client Logs

Client logs:
connecting to utxorpc host: <http://localhost:64235>
Ledger Tip:
  Slot: 12502057
  Hash: 411e0bba19d8942cb08e801e556425d167aecf65c8e6dea64ee909868040ccf5

Expect Output

N/A

  • Test Method: readUtxos(ctx, client, "efd8a48f69e5270cb73b438067e1b566d39758329a45e5d6d36755f2c7326184")
Client logs:
connecting to utxorpc host: <http://localhost:64235>
Ledger Tip:
  Slot: 12502057
  Hash: 411e0bba19d8942cb08e801e556425d167aecf65c8e6dea64ee909868040ccf5

@verbotenj
Copy link
Contributor

verbotenj commented Jul 28, 2024

Test Query: searchUtxos()

Environment

  • Network: Preprod
  • Test Deployment: Dolos: dolos-0.11.0
  • Test Method: (signed transaction) searchUtxos(ctx, client, "101467bc3a356777b920d0c3f023198737e0e6f0ebe9cccabe18a4941316a4092303be48b6477c2a0593a8cd483ca045284585eb4853e84726")

Client Logs

connecting to utxorpc host: <http://localhost:64235>
internal
query not supported
[]

Expect Output

N/A

@verbotenj
Copy link
Contributor

verbotenj commented Jul 28, 2024

Test Query: submitTx()

Environment

  • Network: Preprod
  • Test Deployment: Dolos: dolos-0.11.0
  • Test Method: submitTx(ctx, client, "84a600818258203955f92fb1ce2087fb7a5b40ad6703ecf5d5d68acce1f7668fc74f9da33323d101018282583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1a002dc6c082583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1b0000000127ea4ba7021a00029b1d031a03f6d7f907582019e88476e3da8a6dc1897280459dc96e2547432e31927e15fe2cf63fd577cb220800a10081825820b829480e5d5827d2e1bd7c89176a5ca125c30812e54be7dbdf5c47c835a17f3d5840aa81936e99d0f5c70a4b08bbae6156bc06c18f6fbe4f1763f0736c520fbf7ec6fae9c392e5b963ef627a8b17349ea618f02ac84db90fa2242cd24f00ef820606f5a11902a2a1636d73678165446f6c6f73")

Client Logs

Connecting to utxorpc host: <http://localhost:64235>
internal
couldn't add txs to mempool
[]
panic: internal: couldn't add txs to mempool

Server Logs

 received new grpc submit tx request: SubmitTxRequest { tx: [AnyChainTx { r#type: Some(Raw(b"\x84\xa6\0\x81\x82X 9U\xf9/\xb1\xce \x87\xfbz[@\xadg\x03\xec\xf5\xd5\xd6\x8a\xcc\xe1\xf7f\x8f\xc7O\x9d\xa33#\xd1\x01\x01\x82\x82X9\0\x92=Kd\xe1\xd70\xa4\xba\xf3\xe6\xdcC:\x96\x86\x989@\xf4X6?7\xaa\xd7\xa1\xa9V\x8br\xf8U\"\xe4\xa1}D\xa4\\\xd0!\xb9t\x1bU\xd7\xcb\xc65\xc9\x11b[\x01^\x1a\0-\xc6\xc0\x82X9\0\x92=Kd\xe1\xd70\xa4\xba\xf3\xe6\xdcC:\x96\x86\x989@\xf4X6?7\xaa\xd7\xa1\xa9V\x8br\xf8U\"\xe4\xa1}D\xa4\\\xd0!\xb9t\x1bU\xd7\xcb\xc65\xc9\x11b[\x01^\x1b\0\0\0\x01'\xeaK\xa7\x02\x1a\0\x02\x9b\x1d\x03\x1a\x03\xf6\xd7\xf9\x07X \x19\xe8\x84v\xe3\xda\x8am\xc1\x89r\x80E\x9d\xc9n%GC.1\x92~\x15\xfe,\xf6?\xd5w\xcb\"\x08\0\xa1\0\x81\x82X \xb8)H\x0e]X'\xd2\xe1\xbd|\x89\x17j\\\xa1%\xc3\x08\x12\xe5K\xe7\xdb\xdf\\G\xc85\xa1\x7f=X@\xaa\x81\x93n\x99\xd0\xf5\xc7\nK\x08\xbb\xaeaV\xbc\x06\xc1\x8fo\xbeO\x17c\xf0slR\x0f\xbf~\xc6\xfa\xe9\xc3\x92\xe5\xb9c\xefbz\x8b\x174\x9e\xa6\x18\xf0*\xc8M\xb9\x0f\xa2$,\xd2O\0\xef\x82\x06\x06\xf5\xa1\x19\x02\xa2\xa1cmsg\x81eDolos")) }] }

Unsigned Transaction
Test Method: submitTx(ctx, client, "84a50081825820d3e1af74921ce5b4562ab13acab532af64e1cae02b4033153ab4490299ba478e01018282583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1a00b71b0082583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1b00000001280b6b44021a00029285031a03f6d2c00800a0f5f6")

Client Logs

Connecting to utxorpc host: <http://localhost:64235>
internal
couldn't add txs to mempool
[]
panic: internal: couldn't add txs to mempool

Expect Output

N/A

Expect Output

Transaction reference; Got error: internal: couldn't add txs to mempool

@verbotenj
Copy link
Contributor

Test Query: watchMempool()

Environment

  • Network: Preprod
  • Test Deployment: Dolos: dolos-0.11.0
  • Test Code Repository: https://github.com/utxorpc/go-sdk
  • Test Method: watchMempool(ctx, client) with (request with predicate and fieldMask )

Client Logs

Connecting to utxorpc host: http://localhost:64235
Connected to utxorpc host, watching mempool...
Stream ended with error: canceled: stream error: stream ID 1; CANCEL; received from peer

Server Logs

thread 'tokio-runtime-worker' panicked at src/serve/grpc/submit.rs:159:9:
not yet implemented

Expect Output

All transactions no filtering.
Got none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants