feat(pow): 新增计算pow支持传入token

This commit is contained in:
TheSmallHanCat
2026-03-02 01:28:37 +08:00
parent 404cbd44f0
commit ad554d900a
9 changed files with 144 additions and 27 deletions

View File

@@ -64,6 +64,10 @@ timezone_offset = 8
# beta测试目前仍处于测试阶段
# POW 计算模式local本地计算或 external外部服务
mode = "external"
# 是否使用对应 token 进行 POW 计算(默认关闭)
# local 模式开启后会使用当前轮询 token 获取 POW
# external 模式开启后会向外部服务传递 accesstoken 字段
use_token_for_pow = false
# 外部 POW 服务地址(仅在 external 模式下使用)
server_url = "http://localhost:8002"
# 外部 POW 服务访问密钥(仅在 external 模式下使用)