MCPcopy
hub / github.com/lhartikk/naivechain / getLatestBlock

Function getLatestBlock

main.js:194–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192};
193
194var getLatestBlock = () => blockchain[blockchain.length - 1];
195var queryChainLengthMsg = () => ({'type': MessageType.QUERY_LATEST});
196var queryAllMsg = () => ({'type': MessageType.QUERY_ALL});
197var responseChainMsg = () =>({

Callers 4

generateNextBlockFunction · 0.85
addBlockFunction · 0.85
handleBlockchainResponseFunction · 0.85
responseLatestMsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected