Skip to content

Commit

Permalink
fix: add chainId to tx broadcaster
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Oct 15, 2024
1 parent 6ea6951 commit 5fa7480
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stacking/tx-broadcaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import {
broadcastTransaction,
StacksTransaction,
} from '@stacks/transactions';
import { logger } from './common';
import { logger, CHAIN_ID } from './common';

const broadcastInterval = parseInt(process.env.NAKAMOTO_BLOCK_INTERVAL ?? '2');
const url = `http://${process.env.STACKS_CORE_RPC_HOST}:${process.env.STACKS_CORE_RPC_PORT}`;
const network = new StacksTestnet({ url });
network.chainId = CHAIN_ID;
const EPOCH_30_START = parseInt(process.env.STACKS_30_HEIGHT ?? '0');

const accounts = process.env.ACCOUNT_KEYS!.split(',').map(privKey => ({
Expand Down

0 comments on commit 5fa7480

Please sign in to comment.