1. Apr 09, 2024
  2. Apr 02, 2024
  3. Nov 29, 2023
    • Frank Bell's avatar
      feat: delayed finalization (#214) · 813d99f4
      Frank Bell authored
      Adds `--finalize-delay-sec` cli argument, based on the great work by
      @shunsukew at https://github.com/inkdevhub/swanky-node/pull/61.
      
      Manual testing by starting node with/without option, along with example
      contract upload:
      ```shell
      # build example contract
      cargo contract build --manifest-path=../ink-examples/erc20/Cargo.toml
      
      # start node
      cargo run
      
      # upload contract
      cargo contract upload --suri //Alice --execute --manifest-path=../ink-examples/erc20/Cargo.toml
      # check finalized head remains at genesis
      sleep 1
      test $(curl -sH "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "chainHead_unstable_genesisHash", "params":[]}' http://localhost:9944 | jq .result) \
        = $(curl -sH "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "chain_getFinalizedHead", "params":[]}' http://localhost:9944 | jq .result) && echo PASS || echo FAIL
      
      
      # start node (with delayed finalization)
      cargo run -- --finalize-delay-sec 1
      
      # upload contract
      cargo contract upload --suri //Alice --execute --manifest-path=../ink-examples/erc20/Cargo.toml
      # check finalized head matches chain head
      sleep 1
      test $(curl -sH "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "chain_getHead", "params":[]}' http://localhost:9944 | jq .result) \
        = $(curl -sH "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "chain_getFinalizedHead", "params":[]}' http://localhost:9944 | jq .result) && echo PASS || echo FAIL
      
      ```
      
      Closes #160
      813d99f4
  4. Sep 05, 2023
  5. Jul 25, 2023
  6. Jun 22, 2023
  7. Jun 06, 2023
  8. May 22, 2023
  9. May 05, 2023
  10. Feb 22, 2023
  11. Jan 31, 2023
  12. Dec 13, 2022
  13. Nov 10, 2022
  14. Nov 08, 2022
  15. Oct 10, 2022
  16. Sep 08, 2022
  17. Aug 12, 2022
  18. Aug 09, 2022
  19. Jul 19, 2022
  20. Jul 13, 2022
  21. Jun 28, 2022
  22. Jun 23, 2022
  23. May 23, 2022
  24. May 20, 2022
  25. May 13, 2022
  26. May 11, 2022
  27. May 03, 2022
  28. Apr 22, 2022
  29. Apr 06, 2022
  30. Mar 22, 2022
  31. Mar 15, 2022
  32. Mar 14, 2022
  33. Mar 04, 2022
  34. Feb 24, 2022
  35. Feb 07, 2022
  36. Jan 17, 2022
  37. Dec 07, 2021