Skip to content
Snippets Groups Projects
Unverified Commit 21f431f2 authored by Angelo Capossele's avatar Angelo Capossele Committed by GitHub
Browse files

Update plugins/webapi/drng/info/randomness/handler.go


Co-Authored-By: default avatarLuca Moser <moser.luca@gmail.com>
parent 65f8b0b1
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,7 @@ import ( ...@@ -8,8 +8,7 @@ import (
"github.com/labstack/echo" "github.com/labstack/echo"
) )
// Handler creates a message of the given payload and // Handler returns the current DRNG randomness used.
// broadcasts it to the node's neighbors. It returns the message ID if successful.
func Handler(c echo.Context) error { func Handler(c echo.Context) error {
randomness := drng.Instance.State.Randomness() randomness := drng.Instance.State.Randomness()
return c.JSON(http.StatusOK, Response{ return c.JSON(http.StatusOK, Response{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment