kyokan / bob-wallet

Bob Wallet is a GUI for DNS Record Management and Name Auctions on Handshake. It includes an integrated full node: hsd
https://www.bobwallet.io/
GNU General Public License v3.0
381 stars 91 forks source link

Dep updates + hsd v5.0.1 #590

Closed rithvikvibhu closed 1 year ago

rithvikvibhu commented 1 year ago

Updated without changes:

Updated with changes:

hsd update

pinheadmz commented 1 year ago

not adding any message since it adds negligible delay.

Why not? if a user has, i dunno, 100 wallets or more it may take a minute?

rithvikvibhu commented 1 year ago

Why not? if a user has, i dunno, 100 wallets or more it may take a minute?

Packaged and tested in Linux. Created 100 wallets in bob v1 with:

for i in {1..100}; do hsw-cli mkwallet $i; done

Then launched Bob packaged from this PR:

[I:2023-01-12T14:39:55Z] (wallet) Opening WalletDB...
[I:2023-01-12T14:39:55Z] (wallet-migrations) Database needs migration(s):
  - Account lookahead migration - Account lookahead now supports up to 2^32 - 1

[D:2023-01-12T14:39:55Z] (wallet-migrations) Last migration 1, last available migration: 2
[I:2023-01-12T14:39:55Z] (wallet-migrations) There are 1 migrations.
[I:2023-01-12T14:39:55Z] (wallet-migrations) Migration 2 in progress...
[I:2023-01-12T14:39:55Z] (wallet-migrations) Migration 2 is done.
[I:2023-01-12T14:39:55Z] (wallet) Added 40602 hashes to WalletDB filter.
[...snip...]
[I:2023-01-12T14:39:55Z] (wallet) Wallet opened (1).
[I:2023-01-12T14:39:55Z] (wallet) Wallet opened (2).
[...snip...]
[I:2023-01-12T14:39:55Z] (wallet) Wallet opened (100).

It took < 1 second :D

rithvikvibhu commented 1 year ago

Hey @nodech Ledger doesn't work anymore because of electron's memory cage (blog post).

It has been fixed in node-hid/node-hid v2.1.2. hsd-ledger depends on your fork nodech/node-hid v2.1.1-hsd.0. Can you port over that fix (looks like it's just one line) to your fork and bump hsd-ledger?

The error when trying to "Connect Ledger":

[1040508:0113/130900.313240:ERROR:node_bindings.cc(149)] Fatal error in V8: v8_ArrayBuffer_NewBackingStore When the V8 Sandbox is enabled, ArrayBuffer backing stores must be allocated inside the sandbox address space. Please use an appropriate ArrayBuffer::Allocator to allocate these buffers, or disable the sandbox.

Edit: I can confirm that the one line change from https://github.com/node-hid/node-hid/pull/486 applied manually in node_modules and npm rebuild makes it work!