diff --git a/src/components/footer/index.js b/src/components/footer/index.js index b390639..78903b8 100644 --- a/src/components/footer/index.js +++ b/src/components/footer/index.js @@ -6,7 +6,7 @@ import { faGithub } from '@fortawesome/free-brands-svg-icons' import PropTypes from 'prop-types' // Get the IPFS hash from the BCH Blockchain. -import Memo from '../../services/memo-hash' +// import Memo from '../../services/memo-hash' const siteConfig = require('../site-config') let _this @@ -21,10 +21,10 @@ class Footer extends React.Component { ipfsHashLink: '' } - this.memo = new Memo({ - bchWallet: props.bchWallet, - bchAddr: siteConfig.memoAddr - }) + // this.memo = new Memo({ + // bchWallet: props.bchWallet, + // bchAddr: siteConfig.memoAddr + // }) } async componentDidMount () { @@ -34,53 +34,53 @@ class Footer extends React.Component { // This function retrieves the IPFS CID for the latest copy of this app. That // CID is written to the BCH blockchain. - async handleMemoService () { - // This is a hard-coded hash or 'checkpoint' to use in times when the - // connection fails. - let hash = 'QmXT85Xoi7xMRD9m7Ta4Cx8Yrsd2WSzLrq2VRo26KW4xLu' - - // Try to retrieve the hash from the BCH blockchain. - try { - hash = await this.memo.findHash() - console.log(`IPFS hash found: ${hash}`) - - if (!hash) { - throw new Error('Hash not found! Falling back to hard coded IPFS hash.') - } - } catch (err) { - console.error('Error trying to retrieve IPFS hash for the site: ', err) - } - - this.setState({ - ipfsHash: hash, - ipfsHashLink: `https://ipfs.io/ipfs/${hash}` - }) - } + // async handleMemoService () { + // // This is a hard-coded hash or 'checkpoint' to use in times when the + // // connection fails. + // let hash = 'QmXT85Xoi7xMRD9m7Ta4Cx8Yrsd2WSzLrq2VRo26KW4xLu' + // + // // Try to retrieve the hash from the BCH blockchain. + // try { + // hash = await this.memo.findHash() + // console.log(`IPFS hash found: ${hash}`) + // + // if (!hash) { + // throw new Error('Hash not found! Falling back to hard coded IPFS hash.') + // } + // } catch (err) { + // console.error('Error trying to retrieve IPFS hash for the site: ', err) + // } + // + // this.setState({ + // ipfsHash: hash, + // ipfsHashLink: `https://ipfs.io/ipfs/${hash}` + // }) + // } render () { return ( -