dedis / cothority

Scalable collective authority
Other
425 stars 106 forks source link

Send view method call to whole roster #2434

Closed cgrigis closed 3 years ago

cgrigis commented 3 years ago

What this PR does

This PR increases the reliability of BEvm view methods called from the frontend by sending the request to all the members of the roster. Currently, it was sent only to the first node in the roster, which seems to be unreliable as connection errors appear regularly when using the Stainless demo. To ensure view methods are executed with a state that is current, the latest block ID is tracked during transaction calls and sent for view methods: using it, the node determines whether it needs to wait for an updated state before executing the call.


πŸ™…β€ Friendly checklist:

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication