Different block information for the same block number at different times

On web3.eth.subscribe(‘newBlockHeaders’) im get notification and tryin to get last block via saved block number earlier. It was happen with 9559839 block number on mainnet. First, i was get data with 197 transactions, a little bit later with 41 transactions (as it should be). And among these 41 transactions 33 was included in the block…

Can change mapping storage?

I am beginner in mapping.I work on Truffle and Ganache. I deploy the following contract: pragma solidity ^0.5.12; contract customerFinder{ mapping(uint256 => address payable) public addressStorage; function filling(uint256 iden, address payable sender) public{ addressStorage[iden]=sender; } function finder(uint256 id) public view returns(address payable){ return addressStorage[id]; } } Ganache shows the storage of the contract: After that,…

Impossibility of Distributed Consensus with One Faulty Process

In following answer (LINK: https://bitcoin.stackexchange.com/a/58908/41513), it has been shown that for Asynchronous Byzantine Agreement: “we cannot tolerate 1/3 or more of the nodes being dishonest or we lose either safety or liveness.” For this proof, the following conditions/requirements has been considered: Our system is asynchronous. Some participants may be malicious. We want safety. We want…

Facing issue in verifier.sol file

This is Junaid and I have been working on incorporating ZK SNARKs within a voting application. I am facing some issues regarding the deployment of the contracts. I am sharing the link for the repo that I have been working on. https://github.com/Blockchain-E-Voting/EthzkSNARK-Voting/tree/master/contracts First I am facing the issue in the ‘verifier.sol’ file for the switch…

Not getting token address

Hi i am trying to get already deployed token instance here is my code async loadBlockchainData(){ this.tokenAddress = 0xebee955631d342484bc4a0a2302b9273d48ecc6b; const tokenAbi = [{“constant”:true,”inputs”:[],”name”:”name”,”outputs”:[{“name”:””,”type”:”string”}],”payable”:false,”stateMutability”:”view”,”type”:”function”},{“constant”:false,”inputs”:[{“name”:”delegate”,”type”:”address”},{“name”:”numTokens”,”type”:”uint256″}],”name”:”approve”,”outputs”:[{“name”:””,”type”:”bool”}],”payable”:false,”stateMutability”:”nonpayable”,”type”:”function”},{“constant”:true,”inputs”:[],”name”:”totalSupply”,”outputs”:[{“name”:””,”type”:”uint256″}],”payable”:false,”stateMutability”:”view”,”type”:”function”},{“constant”:false,”inputs”:[{“name”:”owner”,”type”:”address”},{“name”:”buyer”,”type”:”address”},{“name”:”numTokens”,”type”:”uint256″}],”name”:”transferFrom”,”outputs”:[{“name”:””,”type”:”bool”}],”payable”:false,”stateMutability”:”nonpayable”,”type”:”function”},{“constant”:true,”inputs”:[],”name”:”decimals”,”outputs”:[{“name”:””,”type”:”uint8″}],”payable”:false,”stateMutability”:”view”,”type”:”function”},{“constant”:true,”inputs”:[{“name”:”tokenOwner”,”type”:”address”}],”name”:”balanceOf”,”outputs”:[{“name”:””,”type”:”uint256″}],”payable”:false,”stateMutability”:”view”,”type”:”function”},{“constant”:true,”inputs”:[],”name”:”symbol”,”outputs”:[{“name”:””,”type”:”string”}],”payable”:false,”stateMutability”:”view”,”type”:”function”},{“constant”:false,”inputs”:[{“name”:”receiver”,”type”:”address”},{“name”:”numTokens”,”type”:”uint256″}],”name”:”transfer”,”outputs”:[{“name”:””,”type”:”bool”}],”payable”:false,”stateMutability”:”nonpayable”,”type”:”function”},{“constant”:true,”inputs”:[{“name”:”owner”,”type”:”address”},{“name”:”delegate”,”type”:”address”}],”name”:”allowance”,”outputs”:[{“name”:””,”type”:”uint256″}],”payable”:false,”stateMutability”:”view”,”type”:”function”},{“inputs”:[{“name”:”total”,”type”:”uint256″}],”payable”:false,”stateMutability”:”nonpayable”,”type”:”constructor”},{“anonymous”:false,”inputs”:[{“indexed”:true,”name”:”tokenOwner”,”type”:”address”},{“indexed”:true,”name”:”spender”,”type”:”address”},{“indexed”:false,”name”:”tokens”,”type”:”uint256″}],”name”:”Approval”,”type”:”event”},{“anonymous”:false,”inputs”:[{“indexed”:true,”name”:”from”,”type”:”address”},{“indexed”:true,”name”:”to”,”type”:”address”},{“indexed”:false,”name”:”tokens”,”type”:”uint256″}],”name”:”Transfer”,”type”:”event”}] const web3 = window.web3 const accounts = await web3.eth.getAccounts() this.setState({account: accounts[0] }) const networkId = await web3.eth.net.getId() const networkData = NeutralG.networks[networkId] console.log(networkId) if (networkData) { const token = web3.eth.Contract(tokenAbi,this.tokenAddress) console.log(token.address) } else{…