Skip to content

Commit

Permalink
Use chia_rs
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Dec 20, 2023
1 parent e095ec5 commit 45edbf5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions pool/absorb_spend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from typing import Any, Dict, List, Optional
from blspy import AugSchemeMPL, PrivateKey
from chia_rs import AugSchemeMPL, G2Element, PrivateKey

from chia.consensus.block_rewards import calculate_pool_reward
from chia.consensus.constants import ConsensusConstants
Expand All @@ -22,7 +22,6 @@
puzzle_for_pk,
)
from chia.wallet.util.tx_config import DEFAULT_TX_CONFIG
from blspy import G2Element
from chia.wallet.wallet import Wallet
from chia.wallet.wallet_info import WalletInfo

Expand Down
2 changes: 1 addition & 1 deletion pool/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from decimal import Decimal as D
from typing import Dict, Optional, Set, List, Tuple

from blspy import AugSchemeMPL, G1Element
from chia_rs import AugSchemeMPL, G1Element
from chia.pools.pool_wallet_info import PoolState, PoolSingletonState
from chia.protocols.pool_protocol import (
PoolErrorCode,
Expand Down
2 changes: 1 addition & 1 deletion pool/pool_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import aiohttp
import yaml
from blspy import AugSchemeMPL, G2Element
from chia_rs import AugSchemeMPL, G2Element
from aiohttp import web
from chia.protocols.pool_protocol import (
PoolErrorCode,
Expand Down
2 changes: 1 addition & 1 deletion pool/singleton.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Dict, List, Optional, Tuple
import logging

from blspy import G2Element
from chia_rs import G2Element

from chia.consensus.block_record import BlockRecord
from chia.consensus.coinbase import pool_parent_id
Expand Down
2 changes: 1 addition & 1 deletion pool/store/pgsql_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Optional, Set, List, Tuple, Dict

import aiopg
from blspy import G1Element
from chia_rs import G1Element
from chia.pools.pool_wallet_info import PoolState
from chia.protocols.pool_protocol import PostPartialPayload, PostPartialRequest
from chia.types.blockchain_format.coin import Coin
Expand Down
2 changes: 1 addition & 1 deletion pool/store/sqlite_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Optional, Set, List, Tuple, Dict

import aiosqlite
from blspy import G1Element
from chia_rs import G1Element
from chia.pools.pool_wallet_info import PoolState
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.types.coin_spend import CoinSpend
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
git+https://github.com/openchia/chia-blockchain.git@stable/2.1#egg=chia-blockchain
git+https://github.com/olucurious/[email protected]
blspy~=2.0.2
chia_rs
setuptools>=65.5.1
uvloop~=0.19.0
aiopg==1.4.0
Expand Down

0 comments on commit 45edbf5

Please sign in to comment.