Skip to content

Commit

Permalink
feat: add waitForAllTransactionsToConfirm method
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 9, 2022
1 parent 84555a8 commit 7deea68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datalayer/persistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ const subscribeToStoreOnDataLayer = async (storeId) => {

const chiaConfig = fullNode.getChiaConfig();

await waitForAllTransactionsToConfirm();
await addMirror(
storeId,
`http://${await publicIpv4()}:${chiaConfig.data_layer.host_port}`,
Expand Down Expand Up @@ -350,6 +349,7 @@ const getRootDiff = async (storeId, root1, root2) => {
};

const addMirror = async (storeId, url, forceAddMirror = false) => {
await waitForAllTransactionsToConfirm();
const homeOrg = await Organization.getHomeOrg();

if (!homeOrg && !forceAddMirror) {
Expand Down

0 comments on commit 7deea68

Please sign in to comment.