fix tx history not persisting + update build_mwebd script

This commit is contained in:
Matthew Fosse 2024-06-28 12:37:12 -07:00
parent 9a85780137
commit 7869334d46
2 changed files with 11 additions and 2 deletions

View file

@ -217,6 +217,7 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
@override @override
Future<void> init() async { Future<void> init() async {
await transactionHistory.init();
await initMwebUtxosBox(); await initMwebUtxosBox();
} }

View file

@ -1,6 +1,14 @@
# install go > 1.21:
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/go/bin
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
# build mwebd:
git clone https://github.com/ltcmweb/mwebd git clone https://github.com/ltcmweb/mwebd
cd mwebd cd mwebd
go install github.com/ltcmweb/mwebd/cmd/mwebd@latest go install github.com/ltcmweb/mwebd/cmd/mwebd
gomobile bind -target=android -androidapi 21 github.com/ltcmweb/mwebd gomobile bind -target=android -androidapi 21 github.com/ltcmweb/mwebd
mkdir -p ../../../cw_mweb/android/libs/ mkdir -p ../../../cw_mweb/android/libs/
mv ./mwebd.aar $_ mv ./mwebd.aar $_