datdotorg / datdot-node-rust

datdot blockchain node in rust
https://playproject.io/datdot-node-rust
GNU General Public License v3.0
48 stars 9 forks source link

Phase 1 -July - errors #25

Open ninabreznik opened 4 years ago

ninabreznik commented 4 years ago

Error 3

Update

Date: July 8

Not fixed yet: I added a fix to the lib.rs (created contract_id, inserted contract to GetContractByID and emitted an event). Event now does log, but there's a new error (maybe related to me not fixing this in the correct way)

Screenshot_2020-07-07_03-06-47


Date: July 8

Scenario: alice([user, publisher]) bob([user, hoster, attestor]) charlie([user, hoster, attestor]) dave([user, hoster, encoder]) eve([user, encoder, attestor])

Error: NewContract event doesn't get emited

Output: Screenshot_2020-07-07_01-55-03

Error 2

Update

Date: July 8

Fix: Had to change the data type for NoiseKey in lib.rs to H512 and it works. Updates types and also agreggated new types locally. Tried also with Public type but it didn't work. I guess because the value of the NoiseKey is <Buffer 26 6f 1c df f6 c0 e6 98 c9 36 60 8f 50 b4 8d ad a4 53 82 1f 5c 46 9c 9d b5 6a bc 91 a1 47 54 3b, secure: true>

Logs after the fix and a rebuild Screenshot_2020-07-07_01-39-43


Date: July 8

Scenario: alice([user, publisher]) bob([user, hoster, attestor]) charlie([user, hoster, attestor]) dave([user, hoster, encoder]) eve([user, encoder, attestor])

Error: Struct: failed on 'noise_key'

Output: Screenshot_2020-07-06_23-57-35

Error 1

Update:

Date: July 8

Fix: Error was related to the nonce we were passing => need to decide where nonce is created (locally and passed with the tx or on chain).

Screenshot_2020-07-06_23-53-41


Date: July 7

Scenario: log('start scenario') alice([user, hoster]) bob([user, hoster])

Output: Screenshot_2020-07-06_23-20-03


Date: July 7

Scenario: log('start scenario') alice([user]) bob([user, publisher])

Output: Screenshot_2020-07-06_23-24-19