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

No response when I register unconfirmedAdded to Listener. #779

Open
xembook opened this issue Apr 20, 2021 · 7 comments
Open

No response when I register unconfirmedAdded to Listener. #779

xembook opened this issue Apr 20, 2021 · 7 comments

Comments

@xembook
Copy link

xembook commented Apr 20, 2021

  1. Expected behavior and actual behavior.

I want to get Unconfirmed transaction when someone send XYM to my account.
but I can't get it by using listener.unconfirmedAdded

  1. Steps to reproduce the problem.
await listener.open();
alice = nem.Address.createFromRawAddress("NCESRRSDSXQW7LTYWMHZOCXAESNNBNNVXHPB6WY");
listener.unconfirmedAdded(alice)
.subscribe(x=>console.log(x));

subscribe was successful.
image

and I send XYM by using Desktop Symbol Wallet (ver 1.0.2)
but , there is no reaction.

btw,listener.confirmed works well

listener.confirmed(alice)
.subscribe(x=>console.log(x));
  1. Specifications like the version of the project, operating system, or hardware.

I use symbol-sdk-ts-js 1.0.0 which is browserified by nem2-browserify

@rg911
Copy link
Contributor

rg911 commented Apr 20, 2021

Do you have this issue all the time or just happened once?

@xembook
Copy link
Author

xembook commented Apr 20, 2021

this issue is all time happened.
I've never been successful.

@xembook
Copy link
Author

xembook commented Apr 20, 2021

I'm sorry ,I was able to get it by setting the announcing node and the listening node to be the same.
Is this a specification?

@xembook
Copy link
Author

xembook commented Apr 20, 2021

sorry again, this issue is no longer reproduced. Please keep it pending for a while.

@xembook
Copy link
Author

xembook commented Apr 21, 2021

It turns out.

If the node that announces transaction and the node that sets Listener are the same, it works fine.
If I set up listener on different nodes, it may or may not succeed.

@xembook
Copy link
Author

xembook commented Apr 21, 2021

Is this phenomenon similar to this issue?
#776

@xembook
Copy link
Author

xembook commented Apr 22, 2021

I've found a strange phenomenon.
After adding the following listeners, I was able to receive unconfirmedAdded notifications stably.

listener.status(alice).subscribe(x=>console.log(x));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants