Comments (7)
This could be caused by serverStatus
messages triggering recalculation of tx_json.Fee
This would mean that the transactionID (tx._hash) would be recomputed upon resubmit (timeout etc) and it would be possible that validated transaction messages wouldn't be found in the hash lookup cache, while consuming a Sequence, and thus triggering Sequence++ before resubmission.
Every transactionID that a given transaction has been submitted with must be stored, and checked against incoming validated transaction messages.
The role of tx._hash
could perhaps be better filled by something akin to tx._submittedHashes = [...]
?
from xrpl.js.
It doesn't seem like submit response handlers are muted upon a request timeout: https://github.com/ripple/ripple-lib/blob/develop/src/js/ripple/transactionmanager.js#L339-L345
That could potentially lead to multiple concurrent streams of resubmission logic
from xrpl.js.
Submit response handlers are muted upon a request timeout. If you use request.timeout(milliseconds, fn)
and the request doesn't receive a success
or error
within milliseconds
, the timeout function will prevent future events from being emitted on the request. i.e. when a request times-out, you can expect that no more events will be emitted from it.
from xrpl.js.
All I saw was bail outs when tx.finalized
Is there something built in to EventEmitter or something?
from xrpl.js.
https://github.com/ripple/ripple-lib/blob/develop/src/js/ripple/request.js#L98-L103
from xrpl.js.
Ah, I see
from xrpl.js.
Assume that this has been fixed with recent updates to transactionmanager.js until we can confirm otherwise.
from xrpl.js.
Related Issues (20)
- "getTransactions" method on RippleAPI with Clio server HOT 3
- Nested STObject ยป STArray ยป STObject custom definitions error HOT 1
- Deterministic way to find if meta exists in the tx response HOT 2
- Improve method response types for other libraries HOT 2
- Handle rate limiting with integration tests HOT 2
- Legacy BIP39 HOT 1
- Write tests for requestNextPage to verify multiple types of commands can be run HOT 1
- Replace ripple_path_find with path_find in paths snippet
- Update `semver` version HOT 1
- Update `dependabot` interval to twice a month HOT 2
- clean up test framework libraries
- Add unit tests for `groupBy` and `omitBy`
- disable eslint complexity rule for transaction model validate functions
- Add CTID support HOT 2
- sometimes the xrpl api request is failed, HOT 1
- Why do xrpl requests sometimes return "unknownCmd" errors? Sometimes it works just fine. HOT 4
- Export `ledgerAccept` from the integration test `utils.ts` HOT 1
- autofill doesn't cover NetworkID HOT 1
- Use network ID instead of URL to identify faucet network
- Add validate check of currency codes to ensure there are no lowercase characters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xrpl.js.