Bitcoin Forum
May 05, 2024, 07:56:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Btc исходный код вопрос про tx  (Read 137 times)
Cryptomans42 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 14, 2023, 03:51:28 PM
 #1

Подскажите может кто вкурсе, туплю. Есть такой кусочек кода не могу получить значения
1) кошелька и амоунта vin, (по факту с какого кошелька скоко ушло) 

2)кошелек в vout (амаунт там есть) - тут кошелек кому пришло
Буду благодарен кто подскажет)
Или стукните в личку копейкой отблагодарю =)

     for (const CTransactionRef& tx :block.data->vtx) {
           if (!tx->IsCoinBase()) {
                for (const CTxIn &txin : tx->vin) {
                  LogPrintf("TX: %s %s \n",
                                                   txi[Suspicious link removed]evout.hash.toString(),block.height);

                }
               
                for (const CTxOut &txout : tx->vout) {
                                  LogPrintf("TX: %s %s\n", txout.ToString(),block.height);

                                }
            }

        }

1714895785
Hero Member
*
Offline Offline

Posts: 1714895785

View Profile Personal Message (Offline)

Ignore
1714895785
Reply with quote  #2

1714895785
Report to moderator
1714895785
Hero Member
*
Offline Offline

Posts: 1714895785

View Profile Personal Message (Offline)

Ignore
1714895785
Reply with quote  #2

1714895785
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714895785
Hero Member
*
Offline Offline

Posts: 1714895785

View Profile Personal Message (Offline)

Ignore
1714895785
Reply with quote  #2

1714895785
Report to moderator
1714895785
Hero Member
*
Offline Offline

Posts: 1714895785

View Profile Personal Message (Offline)

Ignore
1714895785
Reply with quote  #2

1714895785
Report to moderator
~DefaultTrust
Copper Member
Sr. Member
****
Offline Offline

Activity: 1554
Merit: 487

Stop the war!


View Profile
February 14, 2023, 06:31:33 PM
 #2

Ниче непонятно.
Этот код работает или не работает? Если работает, то че в логи пишет?
Код в сообщении может лучше тегами оформлять? Там над смайликами есть квадрат с решеткой #

Do not trust bitcointalk fascists: leonello; Snork1979; ivan1975
Cryptomans42 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 15, 2023, 06:20:45 AM
Last edit: February 15, 2023, 08:25:02 AM by Cryptomans42
 #3

решил проблему
xandry
Moderator
Legendary
*
Offline Offline

Activity: 3444
Merit: 4037


Crypto Swap Exchange


View Profile WWW
February 15, 2023, 03:59:01 PM
 #4

решил проблему
Так напишите как решили, чтобы может другим пригодилось.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Voodoo People
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
February 28, 2023, 11:30:10 AM
 #5

Без дополнительного контекста или информации о конкретных используемых переменных сложно определить, почему вы не можете получить кошелек и сумму для входа или адрес кошелька получателя для выхода
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!