solana-py
solana-py copied to clipboard
Many new features are rolling out.
Anyone working on it?
Need to bump docker solana version to latest.
- New transaction confirmation strategy using blockheights.
latest version needed for:
- Compute Budget IX
- Quic/http3 integration
This also makes us ready for:
No. Not that I know of. We’re happy to take PRs though!
alright, I'm working on it. waiting for others to check if they are doing it as well.
the confirmation strategy is a much needed feature. it is much better than the timeouts since it relies upon block expiry rather than time based checks.
but since the current Transaction relies on solders, I might have to look at solders Transaction as well. no idea how it works yet.
@crypt0miester Solders just a bunch of macro bindings that wraps around Solana Lab's rust sdk: https://github.com/solana-labs/solana/tree/master/sdk/src
cc @kevinheavey
yup, I think we do nothing to the transaction, it is after it that the last valid blockheight is checked upon.
I already coded some stuff, let's see if the tests go through.
requesting review of #254
I already have an MVP for quic using aioquic. but the performance is not as expected.
it loses performance on connect since it needs to look for the ip of the rpc. adds about a few hundred ms. no idea if I should continue working on it now or not.
Thus, it is much faster to just call the rpc using http/1.1 (haven't tested it against http/2)
gm everyone,
i found a hacky solution to requesting more compute units -
from solana.transaction import TransactionInstruction
request_compute_ix = TransactionInstruction(
keys=[],
program_id=PublicKey("ComputeBudget111111111111111111111111111111"),
data=bytes.fromhex("0080a9030010270000"),
)
i just looked at a transaction that included the instruction and copied the instruction data as hex and reimplemented manually via bytes.fromhex
.
![image](https://user-images.githubusercontent.com/45319061/187131091-011a829e-b67e-4e4d-8898-9f76d3a6836e.png)
gm everyone,
i found a hacky solution to requesting more compute units -
from solana.transaction import TransactionInstruction request_compute_ix = TransactionInstruction( keys=[], program_id=PublicKey("ComputeBudget111111111111111111111111111111"), data=bytes.fromhex("0080a9030010270000"), )
i just looked at a transaction that included the instruction and copied the instruction data as hex and reimplemented manually via
bytes.fromhex
.![]()
gm. how about other ixs?