-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
The height is defined as 1 inside the startLightClientFromGenesis function in the lotion-connect module.
Isn't that variable supposed to be getting from a full node's state?
let tendermint = require('tendermint')
function startLightClientFromGenesis(genesis, nodeAddress) {
return new Promise((resolve, reject) => {
let clientState = {
validators: genesis.validators,
commit: null,
header: { height: 1, chain_id: genesis.chain_id } // Here height is 1 always
}
let lc = tendermint(nodeAddress, clientState)
lc.on('update', function(header) {})
lc.on('error', function(err) {})
resolve(lc)
})
}
module.exports = startLightClientFromGenesis
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels