diff --git a/app/main.ts b/app/main.ts
index 85e8a31..7dad2cb 100644
--- a/app/main.ts
+++ b/app/main.ts
@@ -96,22 +96,13 @@ function execMoneroDaemon(configFilePath: string): ChildProcess {
return monerodProcess;
}
-function startMoneroDaemon(configFilePath: string): ChildProcessWithoutNullStreams {
+function startMoneroDaemon(commandOptions: string[]): ChildProcessWithoutNullStreams {
const monerodPath = path.resolve(__dirname, monerodFilePath);
-
- const args = [
- '--testnet',
- '--fast-block-sync', '1',
- '--prune-blockchain',
- '--sync-pruned-blocks',
- '--confirm-external-bind',
- '--max-concurrency', '1',
- '--log-level', '1',
- '--rpc-access-control-origins=*'
- ];
+
+ console.log("Starting monerod daemon with options: " + commandOptions.join(" "));
// Avvia il processo usando spawn
- const monerodProcess = spawn(monerodPath, args);
+ const monerodProcess = spawn(monerodPath, commandOptions);
// Gestisci l'output di stdout in streaming
monerodProcess.stdout.on('data', (data) => {
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index a16d40c..536d2a8 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -7,6 +7,7 @@ import { DetailRoutingModule } from './pages/detail/detail-routing.module';
import { HardForkInfoRoutingModule } from './pages/hard-fork-info/hard-fork-info-routing.module';
import { SettingsModule } from './pages/settings/settings.module';
import { TransactionsModule } from './pages/transactions/transactions.module';
+import { FormsModule } from '@angular/forms';
const routes: Routes = [
{
@@ -23,6 +24,7 @@ const routes: Routes = [
@NgModule({
imports: [
RouterModule.forRoot(routes, {}),
+ FormsModule,
HomeRoutingModule,
DetailRoutingModule,
TransactionsModule,
diff --git a/src/app/app.component.html b/src/app/app.component.html
index 7836fbc..dba58c2 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,6 +1,6 @@
Start monero daemon
diff --git a/src/app/pages/detail/detail.component.ts b/src/app/pages/detail/detail.component.ts index 09e9998..75af5db 100644 --- a/src/app/pages/detail/detail.component.ts +++ b/src/app/pages/detail/detail.component.ts @@ -90,7 +90,7 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy { console.log('DetailComponent AFTER VIEW INIT'); this.navbarService.setNavbarLinks(this.navbarLinks); - this.loadInterval = setInterval(() => { + setTimeout(() => { this.ngZone.run(() => { if (this.isLoading) { return; @@ -103,7 +103,7 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy { this.load(); }); - }, 5000); + }, 500); } ngOnDestroy(): void { diff --git a/src/app/pages/mining/mining.component.ts b/src/app/pages/mining/mining.component.ts index 2209904..75b5531 100644 --- a/src/app/pages/mining/mining.component.ts +++ b/src/app/pages/mining/mining.component.ts @@ -50,7 +50,8 @@ export class MiningComponent implements AfterViewInit { new NavbarLink('pills-block-template-tab', '#pills-block-template', 'block-template', false, 'Block Template'), new NavbarLink('pills-generate-blocks-tab', '#pills-generate-blocks', 'generate-blocks', false, 'Generate Blocks'), new NavbarLink('pills-submit-block-tab', '#pills-submit-block', 'submit-block', false, 'Submit Block'), - new NavbarLink('pills-calc-pow-tab', '#pills-calc-pow', 'calc-pow', false, 'Calculate PoW Hash') + new NavbarLink('pills-calc-pow-tab', '#pills-calc-pow', 'calc-pow', false, 'Calculate PoW Hash'), + new NavbarLink('pills-add-aux-pow-tab', '#pills-add-aux-pow', 'add-aux-pow', false, 'Add Aux PoW') ]; this.router.events.subscribe((event) => { diff --git a/src/app/pages/settings/settings.component.html b/src/app/pages/settings/settings.component.html index bcde5a1..2778397 100644 --- a/src/app/pages/settings/settings.component.html +++ b/src/app/pages/settings/settings.component.html @@ -7,73 +7,73 @@transactions works!
+