mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
@@ -32,6 +32,12 @@ jobs:
|
||||
api-level: [ 29 ]
|
||||
|
||||
steps:
|
||||
- name: Fix github actions messing up $HOME...
|
||||
run: "echo HOME=/root | sudo tee -a $GITHUB_ENV"
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.ref }}
|
||||
|
||||
- name: configure git
|
||||
run: |
|
||||
git config --global --add safe.directory '*'
|
||||
|
||||
@@ -71,11 +71,12 @@ abstract class WalletAddresses {
|
||||
Future<void> saveAddressesInBox() async {
|
||||
try {
|
||||
walletInfo.address = address;
|
||||
walletInfo.setAddresses(addressesMap);
|
||||
walletInfo.setAddressInfos(addressInfos);
|
||||
walletInfo.setUsedAddresses(usedAddresses.toList());
|
||||
walletInfo.setHiddenAddresses(hiddenAddresses.toList());
|
||||
walletInfo.setManualAddresses(manualAddresses.toList());
|
||||
// TODO: check if it will affect the performance of each wallet
|
||||
await walletInfo.setAddresses(addressesMap);
|
||||
await walletInfo.setAddressInfos(addressInfos);
|
||||
await walletInfo.setUsedAddresses(usedAddresses.toList());
|
||||
await walletInfo.setHiddenAddresses(hiddenAddresses.toList());
|
||||
await walletInfo.setManualAddresses(manualAddresses.toList());
|
||||
|
||||
await walletInfo.save();
|
||||
} catch (e) {
|
||||
|
||||
@@ -428,11 +428,9 @@ class WalletInfo {
|
||||
|
||||
Future<void> setAddresses(Map<String, String> addresses) async {
|
||||
await WalletInfoAddressMap.deleteByWalletInfoId(internalId);
|
||||
final keys = addresses.keys.toList();
|
||||
final values = addresses.values.toList();
|
||||
// ToDo: check why the addresses list gets changed half way through
|
||||
for (int i = 0; i < keys.length; i++) {
|
||||
await WalletInfoAddressMap.insert(internalId, keys[i], values[i]);
|
||||
final entries = addresses.entries.toList();
|
||||
for (final entry in entries) {
|
||||
await WalletInfoAddressMap.insert(internalId, entry.key, entry.value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -258,6 +258,7 @@ class ExceptionHandler {
|
||||
"Connection timed out",
|
||||
"Connection reset by peer",
|
||||
"Connection closed before full header was received",
|
||||
"Connection closed while receiving data",
|
||||
"Connection terminated during handshake",
|
||||
"OS Error: Connection refused, errno = 61",
|
||||
"PERMISSION_NOT_GRANTED",
|
||||
|
||||
Reference in New Issue
Block a user