Skip to content

Commit

Permalink
chore: try proof: 'none' to avoid crashing follower
Browse files Browse the repository at this point in the history
symptoms:

PROOF VERIFICATION FAILURE; crashing follower (Error#4)
Error#4: {"code":-32603,"message":"Internal error","data":"min height 76703 can't be greater than max height 76702"}
  • Loading branch information
dckc committed Jul 7, 2022
1 parent da1486e commit 09d5a8d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/ist-monitor2.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ const { serialize } = makeMarshal();
export const unEval = (x, pretty = false) =>
decodeToJustin(JSON.parse(serialize(harden(x)).body), pretty);

const fOpt = { proof: 'none' };

/**
* @param {number} ix
* @param {Brand} brand
Expand Down Expand Up @@ -153,6 +155,7 @@ const monitorCollateral = async (ix, brand, leader, brandInfo, upsert) => {
const follower = makeFollower(
makeCastingSpec(`:published.vaultFactory.manager${ix}.${child}`),
leader,
fOpt,
);

for await (const { value } of iterateLatest(follower)) {
Expand Down Expand Up @@ -280,6 +283,7 @@ const monitorVaults = async (leader, brandInfo, upsert) => {
const follower = makeFollower(
makeCastingSpec(`:published.vaultFactory.${child}`),
leader,
fOpt,
);

for await (const { value } of iterateLatest(follower)) {
Expand Down Expand Up @@ -323,7 +327,7 @@ const monitorPool = async (ix, brand, leader, brandInfo, upsert) => {
entries(parts).map(async ([child, part]) => {
const path = `:published.amm.pool${ix}.${child}`;
console.log({ ix, child, path });
const follower = makeFollower(makeCastingSpec(path), leader);
const follower = makeFollower(makeCastingSpec(path), leader, fOpt);

for await (const { value } of iterateLatest(follower)) {
// console.debug('item', item);
Expand Down Expand Up @@ -394,6 +398,7 @@ const monitorAMM = async (leader, brandInfo, upsert) => {
const follower = makeFollower(
makeCastingSpec(`:published.amm.${child}`),
leader,
fOpt,
);

// eslint-disable-next-line no-await-in-loop
Expand Down

0 comments on commit 09d5a8d

Please sign in to comment.