solana-py icon indicating copy to clipboard operation
solana-py copied to clipboard

Many new features are rolling out.

Open crypt0miester opened this issue 2 years ago • 8 comments

Anyone working on it?

Need to bump docker solana version to latest.

latest version needed for:

This also makes us ready for:

crypt0miester avatar Jun 17 '22 06:06 crypt0miester

No. Not that I know of. We’re happy to take PRs though!

michaelhly avatar Jun 17 '22 09:06 michaelhly

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 avatar Jun 17 '22 16:06 crypt0miester

@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

michaelhly avatar Jun 17 '22 20:06 michaelhly

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.

crypt0miester avatar Jun 18 '22 03:06 crypt0miester

requesting review of #254

crypt0miester avatar Jun 18 '22 08:06 crypt0miester

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)

crypt0miester avatar Jun 18 '22 08:06 crypt0miester

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

whymidnight avatar Aug 29 '22 05:08 whymidnight

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

gm. how about other ixs?

crypt0miester avatar Sep 06 '22 07:09 crypt0miester