Submit a vote timestamp every vote (#10630)

* Submit a timestamp for every vote

* Submit at most one vote timestamp per second

* Submit a timestamp for every new vote

Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
Michael Vines
2020-08-21 10:10:51 -07:00
committed by GitHub
parent 41868f8adb
commit 247f27af37
4 changed files with 27 additions and 40 deletions

View File

@@ -46,7 +46,7 @@ impl From<RpcCustomError> for Error {
},
RpcCustomError::BlockNotAvailable { slot } => Self {
code: ErrorCode::ServerError(JSON_RPC_SERVER_ERROR_4),
message: format!("Block not available for slot {}", slot,),
message: format!("Block not available for slot {}", slot),
data: None,
},
}