1. 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
  2. Sep 05, 2023
  3. Jul 25, 2023
  4. Jun 22, 2023
  5. Jun 06, 2023
  6. May 22, 2023
  7. May 05, 2023
  8. Feb 22, 2023
  9. Jan 31, 2023
  10. Dec 13, 2022
  11. Nov 10, 2022
  12. Nov 08, 2022
  13. Oct 10, 2022
  14. Sep 08, 2022
  15. Aug 12, 2022
  16. Aug 09, 2022
  17. Jul 19, 2022
  18. Jul 13, 2022
  19. Jun 28, 2022
  20. Jun 23, 2022
  21. May 23, 2022
  22. May 20, 2022
  23. May 13, 2022
  24. May 11, 2022
  25. May 03, 2022
  26. Apr 22, 2022
  27. Apr 06, 2022
  28. Mar 22, 2022
  29. Mar 15, 2022
  30. Mar 14, 2022
  31. Mar 04, 2022
  32. Feb 24, 2022
  33. Feb 07, 2022
  34. Jan 17, 2022
  35. Dec 07, 2021
  36. Nov 24, 2021