Merge #10744: Use method name via func macro
Summary:
9bbf600 Use method name from func macro (darksh1ne)
Tree-SHA512: da6d0714f458b538189bbc2b53252ba353dcc1ef15fa780cb7f690a034b58ab0dbaa3a89f83f044c746241ee265a70fc092449f1cc7be4f190775423fbca5fc5
Backport of Core PR10744
https://github.com/bitcoin/bitcoin/pull/10744/files
Test Plan: make check
Reviewers: #bitcoin_abc, deadalnix, nakihito
Reviewed By: nakihito
Differential Revision: https://reviews.bitcoinabc.org/D3405