I am trying out truffle + web3 + ethereumjs-testrpc. In the app I have the following code:

window.onload = function() {
  var meta = MetaCoin.deployed();
  var event = meta.Transfer({}, {fromBlock: 0, toBlock: 'latest'}, function (error, result) {
    if (error) {
      console.log("Error: " + error);
    } else {

and I am getting the latest transfer endlessly in console. The contract is standard MetaCoin with an event Transfer added. Here is the full code.


This bug was apparently due to the fact that:

After calling eth_getFilterChanges testrpc reports the events, and forgets that it reported it for current block, so when the next eth_getFilterChanges happens, testrpc reports the same events again, and again, infinitely, until the new transaction(block) happens, then it starts reporting the event from new latest block endlessly.

It only occurred in testrpc, not geth.

The bug was fixed by tcoulter in v2.0.3 and should no longer be an issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.