add memo config in rpc
merge from upstream/master
Merge pull request #403 from HackFisher/master

add memo config in rpc