blinklabs-io / cardano-node-api

Multi-protocol API for interfacing with a local Cardano node
Apache License 2.0
5 stars 0 forks source link

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

Open musik-c opened 1 year ago

verbotenj commented 1 month ago

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 commented 1 month ago

Test Query: readParams()

Environment

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 commented 1 month ago

Test Query: readUtxos()

Environment

Client Logs

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

Expect Output

N/A

verbotenj commented 1 month ago

Test Query: searchUtxos()

Environment

Client Logs

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

Expect Output

N/A

verbotenj commented 1 month ago

Test Query: submitTx()

Environment

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 commented 1 month ago

Test Query: watchMempool()

Environment

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.