FIX: unhardcode wallet entropy

This commit is contained in:
Overtorment 2021-11-15 19:25:00 +00:00
parent d4fa42b13f
commit e2de426a82
No known key found for this signature in database
GPG Key ID: AB15F43F78CCBC06

View File

@ -43,9 +43,9 @@ async function tick() {
try {
const seedFromDisk = fs.readFileSync(seedfile, { encoding: 'utf8' })
ldk.setSecret(seedFromDisk);
// const hex = ldk.getEntropyHex();
// await ldk.start(hex);
await ldk.start("00000000000000000000000000000000000000000000000000000000000000f6"); // fixme
const hex = ldk.getEntropyHex();
await ldk.start(hex);
// await ldk.start("00000000000000000000000000000000000000000000000000000000000000f6"); // fixme
} catch (error) {
console.error(error.message);
await new Promise(resolve => setTimeout(resolve, 10* 1000)); // sleep