Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Toni Moral [LN⚡️]
    @tonimoral23_twitter
    Hi Alejandro, I’m checking
    Watafan
    @WatafanDapp_twitter
    I will continue with this account. I´m Toni
    I see something strange happened
    Here I found the tx
    It is a different address
    Watafan
    @WatafanDapp_twitter
    Ok! It is solved. It was a problem with the wallet generation in our platform
    When is it supposed to show "Not found" in the explorer when you introduce an address?
    Alejandro Cavallero
    @alepc253
    @WatafanDapp_twitter when the address is an account and doesn't have transactions nor balance
    Toni Moral [LN⚡️]
    @tonimoral23_twitter
    Thanks Alejandro! Makes sense
    The user created a new account (wallet)after he issued a watacard and sent it to me and later he generated a second wallet by mistake. When I checked the database I saw a different address and this brought me to a confusion. Indeed the second address doesn’t have txs
    😉👍
    Alejandro Cavallero
    @alepc253
    @tonimoral23_twitter no problem!
    Jacek Kołodziejczak
    @KolodziejczakJa_twitter
    @KolodziejczakJa_twitter
    Hi where can I ask about RSK SWAP?
    I have filed transaction when I try to Remove Liquidity on app.rskswap.com https://explorer.rsk.co/tx/0x5369cd604106114a1c597bb7f47796401aa100aa267f7315a218b2013539aaa4
    Jacek Kołodziejczak
    @KolodziejczakJa_twitter
    @KolodziejczakJa_twitter
    I will add that I am the only and first supplier of liquidity in this pool
    rUSDC/rBTC
    and I can not Remove Liquidity
    who can welp me?
    Pedrow
    @pmprete
    Screen Shot 2020-10-12 at 17.58.04.png
    Hi @KolodziejczakJa_twitter im sorry to hear that, on their web page they have a feedback link, you can send them it will lead you to a google drive form https://docs.google.com/forms/d/e/1FAIpQLSe--KfPMxt3vBy6_9eyAOIApIphXUxbJWKODlyYoTOhncm8cw/viewform
    Pedrow
    @pmprete

    okay, so this is happening to me too when trying to remove liquidity form that pool.
    Error: Returned error: VM execution error: UniswapV2: INVALID_SIGNATURE

    Weird thing is that the bridge uses a factory just like rsk swap, so it does not make sense that some work and this don't so it can be 2 things:
    1- Rsk swap is writing incorrectly the signature
    2- The node is interpreting it incorrectly
    If it's rsk swap i'll fix it, if it's the node we will refund your money as we should deploy a new version to make it work

    Tom Pedersen
    @conceptstom
    Hello: I'm new to rsk. I can't get it - a node - up and running on my local Windows 10 machine: When i try to run the command in the CMD(Win command promt) C:>java -cp C:\RSK\node\rskj-core-2.0.1-PAPYRUS-all.jar -Drpc.providers.web.cors=* co.rsk.Start --regtest then i get: Exception in thread "main" java.language.IllegArgument Exception: A block header must have 16/17 elements or 19/20 including merged mining fields, but it only had 19....and then a lot of : at org.ethereumcore (many lines) and at co.rsk.rskcontext (many lines) ... i have set all the proper enviroment variables, paths etc. but the failure remains the same... I am using their description in the rsk Quick-Start guide: https://developers.rsk.co/quick-start/step1-install-rsk-local-node/
    7 replies
    Jacek Kołodziejczak
    @KolodziejczakJa_twitter

    okay, so this is happening to me too when trying to remove liquidity form that pool.
    Error: Returned error: VM execution error: UniswapV2: INVALID_SIGNATURE

    Weird thing is that the bridge uses a factory just like rsk swap, so it does not make sense that some work and this don't so it can be 2 things:
    1- Rsk swap is writing incorrectly the signature
    2- The node is interpreting it incorrectly
    If it's rsk swap i'll fix it, if it's the node we will refund your money as we should deploy a new version to make it work

    I have the same error on my second Poll rUSDT/rBTC when I try to remove liquidity - can not do that - error
    https://explorer.rsk.co/tx/0x435c8349a372c4a015c4bcbf460911a2e4c4901922676043c34fefd124389b9c
    I will add that I am the only and first supplier of liquidity in this pool rUSDT/rBTC
    Can you check it too?

    Pedrow
    @pmprete

    ok, so good news, it's not the invalid signature error, i was getting that because i modified the deadline field so i didn't get the EXPIRED error as the tx from rsk swap have a timestamp associated.

    USDC and USDT have 8 decimals in ethereum, but when we cross them we use the erc777 standard that uses 18 decimals, as the number differ what we used the granularity value in erc777, that means that no amount under certain treshold can be transfered.

    Rsk Swap when you pull out all of the liquidity it reserves a 0.00000000000001 to keep the pool alive, as this has more than 8 decimals is consider invalid.

    Im going to modify the rsk swap front end so it takes this into account and calculates a safe amount to withdrwa, it will be like 4.99999999 taking up until 8 digits.

    I think i can have this ready for tomorrow, i'll write you as soon as i have it

    Jacek Kołodziejczak
    @KolodziejczakJa_twitter

    ok, so good news, it's not the invalid signature error, i was getting that because i modified the deadline field so i didn't get the EXPIRED error as the tx from rsk swap have a timestamp associated.

    USDC and USDT have 8 decimals in ethereum, but when we cross them we use the erc777 standard that uses 18 decimals, as the number differ what we used the granularity value in erc777, that means that no amount under certain treshold can be transfered.

    Rsk Swap when you pull out all of the liquidity it reserves a 0.00000000000001 to keep the pool alive, as this has more than 8 decimals is consider invalid.

    Im going to modify the rsk swap front end so it takes this into account and calculates a safe amount to withdrwa, it will be like 4.99999999 taking up until 8 digits.

    I think i can have this ready for tomorrow, i'll write you as soon as i have it

    Great! :-) Thank you very much!

    Tom Pedersen
    @conceptstom
    I'm trying to test connect to my node via a websocket: wscat -c ws://localhost:4445/websocket , but then i get this result: Error: connect ECONNREFUSED 127.0.0.1:4445 . The docs says that websocket listens to port 4445 as standard. How do i connect correctly ?
    Pedrow
    @pmprete
    i think websocket is disabled by default https://github.com/rsksmart/rskj/blob/master/rskj-core/src/main/resources/reference.conf#L266, to enable it you have to change it on the node.conf
    Tom Pedersen
    @conceptstom

    i think websocket is disabled by default https://github.com/rsksmart/rskj/blob/master/rskj-core/src/main/resources/reference.conf#L266, to enable it you have to change it on the node.conf

    Hello: Thanks for the reply: I downloaded the rsk-core.jar file from https://github.com/rsksmart/rskj/releases. But if i need to change anything in this config(node) i presume that i need to downlad the source file and then complie it somehow - right ?

    Alejandro Cavallero
    @alepc253
    @conceptstom try with -Drpc.providers.web.ws.enabled=true
    Tom Pedersen
    @conceptstom

    @alepc253

    @conceptstom try with -Drpc.providers.web.ws.enabled=true

    Yes it worked with this one enabled.

    Alejandro Cavallero
    @alepc253
    @conceptstom awesome!
    Ernesto García
    @ernestognw

    Hi!
    I have an application with several months working on RSK, and everything works correctly using the public node, but sometimes we start getting a totally random error frequently:

    Unknown Error: { "jsonrpc": "2.0", "id": 2978041344968143, "error": { "code": -32010, "message": "transaction nonce too high" } }

    Does anyone has an idea of what is going on? It's really annoying that we have users complaining once a month and we hadn't been able to find a solution

    There is no information about "too high" nonces but many threads about "too slow". As far as I know, it is only an RSK thing
    And actually you have a test for this: https://github.com/rsksmart/rskj/blob/master/rskj-core/src/test/java/co/rsk/core/bc/TransactionPoolImplTest.java#L603
    I'm using web3.Contract.method.send()
    Seems like I have to precalculate the nonce by myself, but I need some orientation
    Pedrow
    @pmprete

    There is no information about "too high" nonces but many threads about "too slow". As far as I know, it is only an RSK thing
    And actually you have a test for this: https://github.com/rsksmart/rskj/blob/master/rskj-core/src/test/java/co/rsk/core/bc/TransactionPoolImplTest.java#L603

    You have a limit for the number transactions the same address can have on the transaction pool. This limit is 4 for RSK (in Ethereum it's 10) https://github.com/rsksmart/rskj/blob/PAPYRUS-2.1.0/rskj-core/src/main/java/co/rsk/net/handler/txvalidator/TxValidatorNonceRangeValidator.java#L39
    So if we have sent 4 transactions, that have not been mined yet, and send a fifth transaction before a block is mined, it will get an error that the nonce is too high. If a block was mined and it had let's say all 4 of the transactions, then we would be able to add up to 4 transactions for the next block.
    This is donde to prevent DDoS attacks, as the limit 4 is quite low, RSK is changing this to be configurable in their next version (no date for the release yet) rsksmart/rskj@1f53dad

    The work around for the moment is to send no more than 4 transactions from an address, until there is a new block. The other work around is to agregate all of the calls and then use a contract that executes them as it's done in https://github.com/rnsdomains/rns-rskdomains-batch-client/blob/master/src/components/ExecuteRegistrations.js#L363

    Ernesto García
    @ernestognw

    Is there a way to count how many transactions the same address has in the transaction pool? Unfortunately, our service relies on only just one address to write data into a smart contract. I see that the workaround is to let the users pay and transact for themselves, but that is a UX barrier we decided to avoid, and for our use case it doesn´t really matter who made the transaction.

    I'm thinking of creating a cron job or something like that to send the transactions in batch. That's why I'm looking for a way to know the amount of pending transactions in the pool

    Alejandro Cavallero
    @alepc253
    @ernestognw hey, try with eth_getTransactionCount using pending flag
    but have in mind that you can't have more than four tx in the pool
    per account
    the fifth will be rejected
    xxs
    @Hsiang-xxs
    Hello, when I run truffle(testnet)> test, I will get Error: while migrating Migrations: Unknown Error: {"jsonrpc":"2.0","id":6942558973266627,"error":{"code":-32010,"message":"transaction nonce too low"}} what should I do?
    and I used Nifty wallet, and have reset the wallet, but the same issue
    Pedrow
    @pmprete
    are you using a private key or mnemonic passphrase? https://github.com/rsksmart/tokenbridge/blob/master/bridge/truffle-config.js#L14
    you should do that as testnet is not a local network
    xxs
    @Hsiang-xxs
    image.png
    here is my configuration in truffle-config.js
    Alejandro Cavallero
    @alepc253
    @Hsiang-xxs just in case: make sure that the address you are trying to use is the address actually used
    xxs
    @Hsiang-xxs
    image.png
    and this was another issue that I always got
    Alejandro Cavallero
    @alepc253
    @Hsiang-xxs also try setting a higher gasPrice
    xxs
    @Hsiang-xxs
    when I run like truffle(testnet)> contractInstance.method(); or truffle(testnet)>Contract.method();, it always showed like Uncaught TypeError: contractInstance.method is not a function
    before that, I run truffle(testnet)>var contractInstance = Contract.deployed() or truffle(testnet)>var contractInstance = Contract.at(Contract.address), and I could get the detailed and correct information like ABI after truffle(testnet)>contractInstance, but when call method, still the issue