Skip to content

Commit

Permalink
Merge pull request #79 from DIG-Network/release/v0.0.1-alpha.85
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.85
  • Loading branch information
MichaelTaylor3D authored Sep 25, 2024
2 parents 07d7c27 + c6185e7 commit 3c89624
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.1-alpha.85](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.84...v0.0.1-alpha.85) (2024-09-25)


### Bug Fixes

* load mnemonic ([809f263](https://github.com/DIG-Network/dig-chia-sdk/commit/809f263632822a3b78d30a27142c9d91d9d1e17c))

### [0.0.1-alpha.84](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.83...v0.0.1-alpha.84) (2024-09-25)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dignetwork/dig-sdk",
"version": "0.0.1-alpha.84",
"version": "0.0.1-alpha.85",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/blockchain/Wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import {
} from "@dignetwork/datalayer-driver";
import { MIN_HEIGHT, MIN_HEIGHT_HEADER_HASH } from "../utils/config";
import { FileCache } from "../utils/FileCache";
import { USER_DIR_PATH } from "../utils/config";
import path from "path";

const KEYRING_FILE = "keyring.json";
const CACHE_DURATION = 5 * 60 * 1000; // 5 minutes
Expand Down Expand Up @@ -210,7 +212,7 @@ export class Wallet {
feeBigInt: bigint,
omitCoins: Coin[] = []
): Promise<Coin[]> {
const cache = new FileCache<{ coinId: string; expiry: number }>("reserved_coins");
const cache = new FileCache<{ coinId: string; expiry: number }>(path.join(USER_DIR_PATH, "reserved_coins"));
const cachedReservedCoins = cache.getCachedKeys();
const now = Date.now();
const omitCoinIds = omitCoins.map((coin) => getCoinId(coin).toString("hex"));
Expand Down

0 comments on commit 3c89624

Please sign in to comment.