Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Dec 19, 2024
2 parents bfc14f2 + cd8b00f commit 8508711
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tari-universe",
"private": true,
"version": "0.8.29",
"version": "0.8.30",
"type": "module",
"scripts": {
"dev": "vite dev --mode development",
Expand Down Expand Up @@ -70,4 +70,4 @@
"typescript-eslint": "^8.17.0",
"vite": "^5.4.11"
}
}
}
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

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

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Tari Universe"
edition = "2021"
name = "tari-universe"
repository = "https://github.com/tari-project/universe"
version = "0.8.29"
version = "0.8.30"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion src-tauri/binaries_versions_esmeralda.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"mmproxy": "=1.9.1-pre.0",
"minotari_node": "=1.9.1-pre.0",
"wallet": "=1.9.1-pre.0",
"sha-p2pool": "=0.16.0",
"sha-p2pool": "=0.15.4",
"xtrgpuminer": "=0.2.10",
"tor": "=13.5.7"
}
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/binaries_versions_nextnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"mmproxy": "=1.9.1-rc.0",
"minotari_node": "=1.9.1-rc.0",
"wallet": "=1.9.1-rc.0",
"sha-p2pool": "=0.16.0",
"sha-p2pool": "=0.15.4",
"xtrgpuminer": "=0.2.10",
"tor": "=13.5.7"
}
Expand Down
14 changes: 10 additions & 4 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.8.29",
"version": "0.8.30",
"productName": "Tari Universe (Alpha)",
"mainBinaryName": "Tari Universe (Alpha)",
"identifier": "com.tari.universe.alpha",
Expand Down Expand Up @@ -35,7 +35,11 @@
},
"app": {
"security": {
"capabilities": ["desktop-capability", "default", "migrated"],
"capabilities": [
"desktop-capability",
"default",
"migrated"
],
"csp": null
},
"trayIcon": {
Expand Down Expand Up @@ -74,10 +78,12 @@
"plugins": {
"updater": {
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEYxNUJBOEFEQkQ4RjJBMjYKUldRbUtvKzlyYWhiOFJIUmFFditENVV3d3hRbjNlZm1DMi9aMjluRUpVdHhQTytadTV3ODN3bUMK",
"endpoints": ["https://raw.githubusercontent.com/tari-project/universe/main/.updater/alpha-latest.json"],
"endpoints": [
"https://raw.githubusercontent.com/tari-project/universe/main/.updater/alpha-latest.json"
],
"windows": {
"installMode": "passive"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { useEffect, useState } from 'react';
import { CardComponent } from '@app/containers/floating/Settings/components/Card.component.tsx';

export default function P2PConnectionData() {
const { t } = useTranslation('p2p');
const { t } = useTranslation('p2p', { useSuspense: false });
const [copiedId, setCopiedId] = useState<string>();
const { copyToClipboard } = useCopyToClipboard();

Expand Down
9 changes: 5 additions & 4 deletions src/containers/floating/Settings/sections/p2p/P2PoolStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ const P2PoolStats = () => {
const fetchP2poolConnections = useP2poolStatsStore((s) => s?.fetchP2poolConnections);

useEffect(() => {
const fetchP2pStatsInterval = setInterval(async () => {
const handleFetchP2pStats = async () => {
await fetchP2pStats?.();
await fetchP2poolConnections?.();
}, 5000);

};
handleFetchP2pStats();
const fetchP2pStatsInterval = setInterval(handleFetchP2pStats, 5000);
return () => {
clearInterval(fetchP2pStatsInterval);
};
Expand All @@ -43,7 +44,7 @@ const P2PoolStats = () => {
const sha3Height = sha3Stats?.height;
const randomXHeight = randomXStats?.height;
return peers?.map((peer) => {
const { current_sha3x_height, current_random_x_height } = peer.peer_info || {};
const { current_sha3x_height, current_random_x_height } = peer?.peer_info || {};
const sha3Diff = sha3Height ? sha3Height - current_sha3x_height : undefined;
const randomxDiff = randomXHeight ? randomXHeight - current_random_x_height : undefined;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const P2pMarkup = ({ setDisabledStats }: P2pMarkupProps) => {

const handleP2poolEnabled = useCallback(
async (event: React.ChangeEvent<HTMLInputElement>) => {
setDisabledStats(true);
await setP2poolEnabled(event.target.checked);
setDisabledStats(!event.target.checked);
setDialogToShow('restart');
},
[setDialogToShow, setDisabledStats, setP2poolEnabled]
Expand Down

0 comments on commit 8508711

Please sign in to comment.