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

rpc gettransaction 方法,返回结果中的发送方地址写成了接收方地址 #1

Closed
vlyl opened this issue Jun 7, 2018 · 2 comments

Comments

@vlyl
Copy link

vlyl commented Jun 7, 2018

coind gettransaction 7b61bdf6c97bfeeda2de00c6dd437c76089d9d0e7f89952149c94009e7b1848d
{
    "amount" : 0.00010000,
    "confirmations" : 35,
    "blockhash" : "719d19ccd9da355655c5c665f23abb4ba1b22c01be31598b337c2097fb4cbbd8",
    "blocktime" : 1528358300,
    "txid" : "7b61bdf6c97bfeeda2de00c6dd437c76089d9d0e7f89952149c94009e7b1848d",
    "details" : [
        {
            "txtype" : "COMMON_TX",
            "address" : "Wmmw8AGYcHvLtFrpv8FSsHrS3UrZejVHcN",
            "category" : "send",
            "amount" : -0.00010000
        },
        {
            "txtype" : "COMMON_TX",
            "address" : "Wmmw8AGYcHvLtFrpv8FSsHrS3UrZejVHcN",
            "category" : "receive",
            "amount" : 0.00010000
        }
    ],
    "hex" : "03018dab1c048ce57505048ca16203cd10cd10004630440220609a1a3a642073ac91e2df5b954d744b6e4f3df70f9bc94bfdf0fee407652f410220226a1680e9b95d1fe8897ba6afd1dcbbfbba417146c3811bcf6f813b686eb577"
}
@vlyl
Copy link
Author

vlyl commented Jun 8, 2018

rpctx.cpp

obj.push_back(Pair("address", /*vKeyIdSet.begin()->ToAddress()*/SendKeyID.ToAddress()));
obj.push_back(Pair("address", /*vKeyIdSet.begin()->ToAddress()*/RecvKeyID.ToAddress()));

@bitbytemaster
Copy link
Contributor

Just fixed it. Thanks for raising this issue!

@bitbytemaster bitbytemaster changed the title rpc gettransactioninfo方法,返回结果中的发送方地址写成了接收方地址 rpc gettransaction 方法,返回结果中的发送方地址写成了接收方地址 Aug 29, 2018
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