Giter VIP home page Giter VIP logo

noss's People

Contributors

dylanma1994 avatar maxiaoxiong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

noss's Issues

报错 242行

image

私钥填在楼主说的那一行''里,格式转换前后的都试过还是报错

这种是啥原因

Traceback (most recent call last):
File "D:\Downloads\noss-main\main.py", line 227, in
identity_pk = PrivateKey.from_nsec("")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\noss-main\venv\Lib\site-packages\pynostr\key.py", line 104, in from_nsec
return cls(bytes(bech32_decode(nsec)))
^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\noss-main\venv\Lib\site-packages\pynostr\utils.py", line 16, in bech32_decode
raw_secret = bech32.convertbits(data, 5, 8)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\noss-main\venv\Lib\site-packages\pynostr\bech32.py", line 106, in convertbits
for value in data:
TypeError: 'NoneType' object is not iterable

get_block_from_rpc里的current_block设置有问题

代码里写的是:
current_block = math.ceil(genius_block + (time.time() - 1704112210) * 4)

返回的结果为:
ERROR - 获取区块高度 https://arbitrum-one.publicnode.com, {'method': 'eth_getBlockByNumber', 'params': ['0x9f44d6f', False], 'id': 1, 'jsonrpc': '2.0'}, {'jsonrpc': '2.0', 'id': 1, 'result': None}

这个current_block的赋值不正确,获取要根据api来获取?

比如:https://api.arbiscan.io/api?module=proxy&action=eth_blockNumber&apikey=YourApiKeyToken

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.