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

GetRawMemPool(true) throws exception #115

Open
Leonardiae opened this issue Nov 4, 2019 · 4 comments
Open

GetRawMemPool(true) throws exception #115

Leonardiae opened this issue Nov 4, 2019 · 4 comments

Comments

@Leonardiae
Copy link

When calling GetRawMemPool(true) it throws this exception:
{"Unkown property: fees in GetRawMemPool()"}

@moodmosaic
Copy link
Contributor

Which Bitcoin Core version you're using? Also, can you send us the stack trace of the exception?

@Leonardiae
Copy link
Author

I'm using 0.18.0

I'm a starter dev and don't know how to make a stack trace :(
But this is my function:

static public void GetRawMempoolLocalNode()
{
try
{

            IBitcoinService BitcoinService = new BitcoinService("localhost", "x", "x", "x", 2);
            var response = BitcoinService.GetRawMemPool(true);
        }
        catch (Exception exception)
        {
                    //
        }
    }

If I call GetRawMemPool without a parameter then I get results (a list of txid's).

@moodmosaic
Copy link
Contributor

moodmosaic commented Nov 4, 2019

I'm a starter dev and don't know how to make a stack trace :(

That's totally fine, we're more than happy to help 👍 — So, in your catch block, trying doing something like var err = exception.ToString(); and then hover your debugger there and copy the text.

Or do a System.Console.WriteLine(exception.ToString()); and let us know what the output is.


That is,

catch (Exception exception)
{
    var err = exception.ToString();
    // What is the value of `err`?
}

or

catch (Exception exception)
{
    System.Console.WriteLine(exception.ToString());
    // What gets printed in the console?
}

@Leonardiae
Copy link
Author

System.Exception: Unkown property: fees in GetRawMemPool()
at BitcoinLib.Services.CoinService.GetRawMemPool(Boolean verbose)
at Prog.Program.GetRawMempoolLocalNode() in C:\Users\Leonardiae\source\repos\Prog .netframework\Prog .netframework\Program.cs:line 71

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