Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction too large #28

Open
cryptozeny opened this issue Dec 16, 2019 · 4 comments
Open

Transaction too large #28

cryptozeny opened this issue Dec 16, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cryptozeny
Copy link
Member

cryptozeny commented Dec 16, 2019

    // Extremely large transactions with lots of inputs can cost the network
    // almost as much to process as they cost the sender in fees, because
    // computing signature hashes is O(ninputs*txsize). Limiting transactions
    // to MAX_STANDARD_TX_WEIGHT mitigates CPU exhaustion attacks.

bitcoin/bitcoin#6522

https://github.com/sugarchain-project/sugarchain/blob/master-v0.16.3/src/policy/policy.cpp#L89-L97

https://github.com/sugarchain-project/sugarchain/blob/master-v0.16.3/src/wallet/wallet.cpp#L2991-L2996

src/policy/policy.h:static const unsigned int MAX_STANDARD_TX_WEIGHT = 400000;

its common issue on BTC based blockchain. it will fixed in Schnorr Signature update.

@cryptozeny cryptozeny added enhancement New feature or request help wanted Extra attention is needed labels Dec 16, 2019
@cryptozeny
Copy link
Member Author

Workaround
image

rakutens:
Transaction too large is not very serious in sugar, because transfer records can be selected from wallet

@cryptozeny
Copy link
Member Author

@decryp2kanon
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants