Changeset View
Changeset View
Standalone View
Standalone View
apps/ecash-herald/test/parseTests.js
// Copyright (c) 2023 The Bitcoin developers | // Copyright (c) 2023 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
'use strict'; | 'use strict'; | ||||
const assert = require('assert'); | const assert = require('assert'); | ||||
const config = require('../config'); | const config = require('../config'); | ||||
const blocks = require('./mocks/blocks'); | const unrevivedBlocks = require('./mocks/blocks'); | ||||
const { jsonReviver } = require('../src/utils'); | |||||
const blocks = JSON.parse(JSON.stringify(unrevivedBlocks), jsonReviver); | |||||
const memoOutputScripts = require('./mocks/memo'); | const memoOutputScripts = require('./mocks/memo'); | ||||
const { | const { | ||||
parseBlock, | parseBlock, | ||||
parseMemoOutputScript, | parseMemoOutputScript, | ||||
getBlockTgMessage, | getBlockTgMessage, | ||||
} = require('../src/parse'); | } = require('../src/parse'); | ||||
Show All 24 Lines |