Skip to content

Instantly share code, notes, and snippets.

View HAOYUatHZ's full-sized avatar
😈
POISONed

HAOYUatHZ HAOYUatHZ

😈
POISONed
View GitHub Profile
version: '3'
services:
prover:
image: scrolltech/cuda-prover:v4.1.45-69d2d2b-bd90176-728cf00
runtime: nvidia
container_name: prover
restart: unless-stopped
environment:
- LD_LIBRARY_PATH=/prover:/usr/local/cuda/lib64
- SCROLL_PROVER_ASSETS_DIR=/prover/volume/assets

Pool

  • 什么是拒绝数?拒绝率?
    • 根据矿池的工作原理,矿池不断给矿机下发新的计算任务,矿机将计算结果提交给矿池。但是由于矿机与矿池的网络连接是有延迟的,从矿池下发新的挖矿高度的任务给矿机,到矿机接收到任务,在这段时间提交的结果已经过时,将不被矿池承认。拒绝率即无效提交与总提交结果之比。
    • 拒绝数是指矿机提交的算力不符合服务器要求,被服务器拒绝的工作量。拒绝率是指拒绝数占总提交数的比例,数值越小,矿机的工作效率就越高。
  • 幸运值
    • 每个区块的幸运值是矿池实际工作量与挖矿难度之比。如果工作量小于难度,说明运气比较好,幸运值就越高。挖矿的运气成分很大,幸运值发生波动也很常见,但挖矿时间越久,总幸运值越接近 100%。
  • 结算方式
    • PPS
      • 收益稳定,只要矿机正常工作就有收益,收益和提交的工作量有关,和矿池幸运值、交易手续费无关
  • PPS+
INFO [01-13|04:14:20.757|scroll-tech/bridge/cmd/app/app.go:103] HTTP endpoint opened url=http://[::]:8290/
INFO [01-13|04:14:20.757|scroll-tech/bridge/cmd/app/app.go:106] Start bridge successfully
INFO [01-13|04:14:20.763|scroll-tech/bridge/l1/watcher.go:156] Received new L1 events fromBlock=175,146 toBlock=175,155 cnt=19
INFO [01-13|04:14:20.763|scroll-tech/bridge/l2/watcher.go:242] received new L2 messages fromBlock=654,858 toBlock=654,867 cnt=7
INFO [01-13|04:14:20.764|scroll-tech/bridge/l1/watcher.go:163] L1 events types SentMessageCount=19 RelayedMessageCount=0 RollupEventCount=0
INFO [01-13|04:14:20.787|scroll-tech/bridge/l1/watcher.go:156] Received new L1 events fromBlock=175,156 toBlock=175,165 cnt=48
INFO [01-13|04:14:20.788|scroll-tech/bridge/l1/watcher.go:163] L1 events types SentMessageCount=48 RelayedMessageCount=0 RollupEventCount=0
INFO [01-13|04:14:20.793|scroll-tech/
@HAOYUatHZ
HAOYUatHZ / rollup.md
Last active January 6, 2023 09:05
batch DA & proof & bridge
  1. addresses
  • staging: 0xf42f7133876878ac83b22d3b4FE6B92286B51833
  • main-prealpha: 0x27b5ce7d020545653488eF0FF0D25f362CE36f95
  1. DA

查看 contract call calldata

function commitBatch(Layer2Batch memory _batch) external;
@HAOYUatHZ
HAOYUatHZ / rollupscan.md
Last active October 12, 2022 12:01
DA & proof & bridge
  1. DA

查看 contract call calldata

function commitBlock(BlockHeader memory _header, Layer2Transaction[] memory _txn)

struct BlockHeader {
  bytes32 blockHash;
  bytes32 parentHash;
@HAOYUatHZ
HAOYUatHZ / 0x632c51227c2635d2d0b06ba962523e9b4fbc7c8f52798ea5f417ff61f4e98f78.old.json
Last active September 12, 2022 05:28
0x632c51227c2635d2d0b06ba962523e9b4fbc7c8f52798ea5f417ff61f4e98f78.old.json
This file has been truncated, but you can view the full file.
{
"jsonrpc":"2.0",
"id":1,
"result":{
"gas":83985,
"failed":true,
"accountAfter":null,
"structLogs":[
{
"pc":0,
@HAOYUatHZ
HAOYUatHZ / 0x632c51227c2635d2d0b06ba962523e9b4fbc7c8f52798ea5f417ff61f4e98f78.new.json
Created September 12, 2022 05:27
0x632c51227c2635d2d0b06ba962523e9b4fbc7c8f52798ea5f417ff61f4e98f78.new.json
This file has been truncated, but you can view the full file.
{
"jsonrpc":"2.0",
"id":1,
"result":{
"gas":83985,
"failed":true,
"accountAfter":null,
"structLogs":[
{
"pc":0,
This file has been truncated, but you can view the full file.
[2022-08-03T21:40:46Z INFO zkevm::utils] load_or_create_params /home/ubuntu/xinran/roller-rs/test_params/params18
[2022-08-03T21:40:46Z INFO zkevm::utils] start loading params with degree 18
[2022-08-03T21:40:46Z INFO zkevm::utils] load params successfully!
[2022-08-03T21:40:46Z INFO zkevm::utils] load_or_create_params /home/ubuntu/xinran/roller-rs/test_params/params26
[2022-08-03T21:40:46Z INFO zkevm::utils] start loading params with degree 26
[2022-08-03T21:41:16Z INFO zkevm::utils] load params successfully!
[2022-08-03T21:41:16Z INFO roller::roller] connect to scroll successfully!
[2022-08-03T21:41:16Z INFO roller::roller] my pubkey is: 03b3e364279455cf3b1adefdc0faed7ffe97e61fd4c03f3ae5e9f87b19c3d810c3
[2022-08-03T21:41:16Z INFO roller::roller] start to create agg proof of block-id(1)
[2022-08-03T21:41:17Z INFO zkevm::prover] Create evm proof of block 0xa4b6…eae0
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockTrace": {
"number": "5",
"hash": "0xc3802e1768945a411c328348f4101c0073c08cc0aa583a43f236edd592b1a4d7",
"gasLimit": 4722986,
"difficulty": "2",
"baseFee": "0",